mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 12:14:10 +08:00
radv: allow to enable NGG streamout with RADV_PERFTEST=ngg_streamout
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19435>
This commit is contained in:
parent
4621c4936b
commit
75faaac895
@ -801,6 +801,8 @@ RADV driver environment variables
|
||||
enable unofficial experimental support for NV_mesh_shader.
|
||||
``pswave32``
|
||||
enable wave32 for pixel shaders (GFX10+)
|
||||
``ngg_streamout``
|
||||
enable NGG streamout
|
||||
``nggc``
|
||||
enable NGG culling on GPUs where it's not enabled by default (GFX10.1 only).
|
||||
``rt``
|
||||
|
@ -85,6 +85,7 @@ enum {
|
||||
RADV_PERFTEST_RT_WAVE_64 = 1u << 12,
|
||||
RADV_PERFTEST_GPL = 1u << 13,
|
||||
RADV_PERFTEST_EXT_MS = 1u << 14,
|
||||
RADV_PERFTEST_NGG_STREAMOUT = 1u << 15,
|
||||
};
|
||||
|
||||
bool radv_init_trace(struct radv_device *device);
|
||||
|
@ -871,7 +871,8 @@ radv_physical_device_try_create(struct radv_instance *instance, drmDevicePtr drm
|
||||
(device->instance->perftest_flags & RADV_PERFTEST_NGGC)) &&
|
||||
!(device->instance->debug_flags & RADV_DEBUG_NO_NGGC);
|
||||
|
||||
device->use_ngg_streamout = false;
|
||||
device->use_ngg_streamout = device->use_ngg &&
|
||||
(device->instance->perftest_flags & RADV_PERFTEST_NGG_STREAMOUT);
|
||||
|
||||
/* Determine the number of threads per wave for all stages. */
|
||||
device->cs_wave_size = 64;
|
||||
@ -1062,6 +1063,7 @@ static const struct debug_control radv_perftest_options[] = {{"localbos", RADV_P
|
||||
{"rtwave64", RADV_PERFTEST_RT_WAVE_64},
|
||||
{"gpl", RADV_PERFTEST_GPL},
|
||||
{"ext_ms", RADV_PERFTEST_EXT_MS},
|
||||
{"ngg_streamout", RADV_PERFTEST_NGG_STREAMOUT},
|
||||
{NULL, 0}};
|
||||
|
||||
const char *
|
||||
|
Loading…
Reference in New Issue
Block a user