mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
mesa/st: Add an assertion for finalize_nir versus PIPE_CAP_TEXCOORD.
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12218>
This commit is contained in:
parent
9194ee90c8
commit
6dd87592a6
1 changed files with 3 additions and 0 deletions
|
|
@ -69,6 +69,9 @@ st_nir_fixup_varying_slots(struct st_context *st, nir_shader *shader,
|
|||
if (st->needs_texcoord_semantic)
|
||||
return;
|
||||
|
||||
/* This is called from finalize, but we don't want to do this adjustment twice. */
|
||||
assert(!st->allow_st_finalize_nir_twice);
|
||||
|
||||
nir_foreach_variable_with_modes(var, shader, mode) {
|
||||
if (var->data.location >= VARYING_SLOT_VAR0) {
|
||||
var->data.location += 9;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue