radv: Support NGG culling with new perftest environment variable.
Currently we don't enable it on any chip by default, but we plan to enable it soon on GFX10.3 when we are comfortable with its performance. RADV_PERFTEST=nggc environment variable enables it on GFX10+ GPUs. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10525>
This commit is contained in:
@@ -569,6 +569,10 @@ bool radv_lower_io_to_mem(struct radv_device *device, struct nir_shader *nir,
|
||||
void radv_lower_ngg(struct radv_device *device, struct nir_shader *nir,
|
||||
struct radv_shader_info *info,
|
||||
const struct radv_pipeline_key *pl_key,
|
||||
struct radv_shader_variant_key *key);
|
||||
struct radv_shader_variant_key *key,
|
||||
bool consider_culling);
|
||||
|
||||
bool radv_consider_culling(struct radv_device *device, struct nir_shader *nir,
|
||||
uint64_t ps_inputs_read);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user