radv: add radv_physical_device::emulate_mesh_shader_queries for GFX10.3

GFX11 supports them natively but not GFX10.3.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25950>
This commit is contained in:
Samuel Pitoiset 2023-09-28 12:28:26 +02:00 committed by Marge Bot
parent a1609d76ee
commit bc6d29b0ca
2 changed files with 5 additions and 0 deletions

View file

@ -1902,6 +1902,8 @@ radv_physical_device_try_create(struct radv_instance *instance, drmDevicePtr drm
device->emulate_ngg_gs_query_pipeline_stat = device->use_ngg && device->rad_info.gfx_level < GFX11;
device->emulate_mesh_shader_queries = device->rad_info.gfx_level == GFX10_3;
/* Determine the number of threads per wave for all stages. */
device->cs_wave_size = 64;
device->ps_wave_size = 64;

View file

@ -311,6 +311,9 @@ struct radv_physical_device {
/* Whether to emulate the number of primitives generated by GS. */
bool emulate_ngg_gs_query_pipeline_stat;
/* Whether to emulate mesh/task shader queries. */
bool emulate_mesh_shader_queries;
/* Number of threads per wave. */
uint8_t ps_wave_size;
uint8_t cs_wave_size;