Home
last modified time | relevance | path

Searched refs:vp_translate (Results 1 – 5 of 5) sorted by relevance

/third_party/mesa3d/src/amd/llvm/
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()
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()
339 LLVMValueRef vp_translate[2], LLVMValueRef small_prim_precision, in ac_cull_primitive()
357 cull_bbox(ctx, pos, accepted, &w, vp_scale, vp_translate, small_prim_precision, in ac_cull_primitive()
Dac_llvm_cull.h59 LLVMValueRef vp_translate[2], LLVMValueRef small_prim_precision,
/third_party/mesa3d/src/amd/common/
Dac_nir_cull.c104 … nir_ssa_def *vp_translate[2] = { nir_load_viewport_x_offset(b), nir_load_viewport_y_offset(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/
Dgfx10_shader_ngg.c942 LLVMValueRef vp_scale[2] = {}, vp_translate[2] = {}, small_prim_precision = NULL; in cull_primitive() local
954 vp_translate[0] = ac_llvm_extract_elem(&ctx->ac, vp, 2); in cull_primitive()
955 vp_translate[1] = ac_llvm_extract_elem(&ctx->ac, vp, 3); 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/
Dradv_cmd_buffer.c7518 float vp_scale[2], vp_translate[2]; in radv_emit_ngg_culling_state() local
7520 memcpy(vp_translate, cmd_buffer->state.dynamic.viewport.xform[0].translate, 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()
7537 vp_translate[1] = -vp_translate[1]; in radv_emit_ngg_culling_state()
7543 vp_translate[i] *= (float) pipeline->ms.num_samples; in radv_emit_ngg_culling_state()
7546 …p_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()