radv: determine NGG culling info before NGG info
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27722>
This commit is contained in:

committed by
Marge Bot

parent
e3863a22bb
commit
0570d40d5b
@@ -1653,12 +1653,12 @@ radv_link_shaders_info(struct radv_device *device, struct radv_shader_stage *pro
|
||||
struct radv_shader_stage *gs_stage = consumer && consumer->stage == MESA_SHADER_GEOMETRY ? consumer : NULL;
|
||||
struct gfx10_ngg_info *out = gs_stage ? &gs_stage->info.ngg_info : &producer->info.ngg_info;
|
||||
|
||||
gfx10_get_ngg_info(device, &producer->info, gs_stage ? &gs_stage->info : NULL, out);
|
||||
|
||||
/* Determine other NGG settings like culling for VS or TES without GS. */
|
||||
if (!gs_stage) {
|
||||
radv_determine_ngg_settings(device, producer, consumer, gfx_state);
|
||||
}
|
||||
|
||||
gfx10_get_ngg_info(device, &producer->info, gs_stage ? &gs_stage->info : NULL, out);
|
||||
} else if (consumer && consumer->stage == MESA_SHADER_GEOMETRY) {
|
||||
struct radv_shader_info *gs_info = &consumer->info;
|
||||
struct radv_shader_info *es_info = &producer->info;
|
||||
|
Reference in New Issue
Block a user