mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
radeonsi: remove si_shader_info::writes_position
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34492>
This commit is contained in:
parent
c761da42ce
commit
9edcf19f7d
3 changed files with 1 additions and 3 deletions
|
|
@ -548,7 +548,6 @@ struct si_shader_info {
|
|||
bool uses_grid_size;
|
||||
bool uses_tg_size;
|
||||
bool uses_atomic_ordered_add;
|
||||
bool writes_position;
|
||||
bool writes_psize;
|
||||
bool writes_clipvertex;
|
||||
bool writes_primid;
|
||||
|
|
|
|||
|
|
@ -498,7 +498,6 @@ void si_nir_scan_shader(struct si_screen *sscreen, struct nir_shader *nir,
|
|||
info->writes_psize = nir->info.outputs_written & VARYING_BIT_PSIZ;
|
||||
info->writes_clipvertex = nir->info.outputs_written & VARYING_BIT_CLIP_VERTEX;
|
||||
info->writes_edgeflag = nir->info.outputs_written & VARYING_BIT_EDGE;
|
||||
info->writes_position = nir->info.outputs_written & VARYING_BIT_POS;
|
||||
}
|
||||
|
||||
nir_function_impl *impl = nir_shader_get_entrypoint(nir);
|
||||
|
|
|
|||
|
|
@ -3667,7 +3667,7 @@ static void *si_create_shader_selector(struct pipe_context *ctx,
|
|||
bool ngg_culling_allowed =
|
||||
sscreen->info.gfx_level >= GFX10 &&
|
||||
sscreen->use_ngg_culling &&
|
||||
sel->info.writes_position &&
|
||||
sel->nir->info.outputs_written & VARYING_BIT_POS &&
|
||||
!sel->nir->info.writes_memory &&
|
||||
/* NGG GS supports culling with streamout because it culls after streamout. */
|
||||
(sel->stage == MESA_SHADER_GEOMETRY || !sel->info.enabled_streamout_buffer_mask) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue