Home
last modified time | relevance | path

Searched refs:vp_scale (Results 1 - 5 of 5) sorted by relevance

/third_party/mesa3d/src/amd/llvm/
H A Dac_llvm_cull.c146 LLVMValueRef vp_scale[2], LLVMValueRef vp_translate[2], in cull_bbox()
217 min = ac_build_fmad(ctx, bbox_min[chan], vp_scale[chan], vp_translate[chan]); in cull_bbox()
218 max = ac_build_fmad(ctx, bbox_max[chan], vp_scale[chan], vp_translate[chan]); in cull_bbox()
225 * It also works for MSAA, but vp_scale, vp_translate, in cull_bbox()
270 v0[chan] = ac_build_fmad(ctx, pos[0][chan], vp_scale[chan], vp_translate[chan]); in cull_bbox()
271 v1[chan] = ac_build_fmad(ctx, pos[1][chan], vp_scale[chan], vp_translate[chan]); in cull_bbox()
326 * \param vp_scale Viewport scale XY.
338 LLVMValueRef initially_accepted, LLVMValueRef vp_scale[2], in ac_cull_primitive()
357 cull_bbox(ctx, pos, accepted, &w, vp_scale, vp_translate, small_prim_precision, in ac_cull_primitive()
144 cull_bbox(struct ac_llvm_context *ctx, LLVMValueRef pos[3][4], LLVMValueRef initially_accepted, struct ac_position_w_info *w, LLVMValueRef vp_scale[2], LLVMValueRef vp_translate[2], LLVMValueRef small_prim_precision, LLVMValueRef clip_half_line_width[2], struct ac_cull_options *options, ac_cull_accept_func accept_func, void *userdata) cull_bbox() argument
337 ac_cull_primitive(struct ac_llvm_context *ctx, LLVMValueRef pos[3][4], LLVMValueRef initially_accepted, LLVMValueRef vp_scale[2], LLVMValueRef vp_translate[2], LLVMValueRef small_prim_precision, LLVMValueRef clip_half_line_width[2], struct ac_cull_options *options, ac_cull_accept_func accept_func, void *userdata) ac_cull_primitive() argument
H A Dac_llvm_cull.h58 LLVMValueRef initially_accepted, LLVMValueRef vp_scale[2],
/third_party/mesa3d/src/amd/common/
H A Dac_nir_cull.c103 nir_ssa_def *vp_scale[2] = { nir_load_viewport_x_scale(b), nir_load_viewport_y_scale(b), }; in cull_bbox() local
124 nir_ssa_def *min = nir_ffma(b, bbox_min[chan], vp_scale[chan], vp_translate[chan]); in cull_bbox()
125 nir_ssa_def *max = nir_ffma(b, bbox_max[chan], vp_scale[chan], vp_translate[chan]); in cull_bbox()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dgfx10_shader_ngg.c942 LLVMValueRef vp_scale[2] = {}, vp_translate[2] = {}, small_prim_precision = NULL; in cull_primitive() local
952 vp_scale[0] = ac_llvm_extract_elem(&ctx->ac, vp, 0); in cull_primitive()
953 vp_scale[1] = ac_llvm_extract_elem(&ctx->ac, vp, 1); in cull_primitive()
999 ac_cull_primitive(&ctx->ac, pos, clipdist_accepted, vp_scale, vp_translate, in cull_primitive()
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_cmd_buffer.c7518 float vp_scale[2], vp_translate[2]; in radv_emit_ngg_culling_state() local
7519 memcpy(vp_scale, cmd_buffer->state.dynamic.viewport.xform[0].scale, 2 * sizeof(float)); in radv_emit_ngg_culling_state()
7521 bool vp_y_inverted = (-vp_scale[1] + vp_translate[1]) > (vp_scale[1] + vp_translate[1]); in radv_emit_ngg_culling_state()
7536 vp_scale[1] = -vp_scale[1]; in radv_emit_ngg_culling_state()
7542 vp_scale[i] *= (float) pipeline->ms.num_samples; in radv_emit_ngg_culling_state()
7546 uint32_t vp_reg_values[4] = {fui(vp_scale[0]), fui(vp_scale[1]), fui(vp_translate[0]), fui(vp_translate[1])}; in radv_emit_ngg_culling_state()

Completed in 31 milliseconds