ac,radeonsi: cull small lines in the shader using the diamond exit rule
authorMarek Olšák <marek.olsak@amd.com>
Sat, 6 Nov 2021 01:56:24 +0000 (21:56 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 16 Nov 2021 02:11:46 +0000 (02:11 +0000)
commit9151ac3531f05a825b6a07c4977251b45ed34141
tree5990724a091fbe932c60b8c626de33d577d6d28e
parent701a0b51659eec37eb107c658fa9b8bddf922049
ac,radeonsi: cull small lines in the shader using the diamond exit rule

It also splits clip_half_line_width into X and Y components for tighter
view culling.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13700>
src/amd/llvm/ac_llvm_cull.c
src/gallium/drivers/radeonsi/gfx10_shader_ngg.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state_viewport.c