etnaviv: re-emit uniforms on sampler view changes when txs is used

The shader uniforms used for emulating TXS depend on the current
sampler view state and thus need to be re-emitted when this
states changes.

Fixes: 88f399b651 ("etnaviv: nir: support intrinsic used for txs lowering")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31495>
(cherry picked from commit c12697abe0)
This commit is contained in:
Lucas Stach 2024-10-03 01:14:00 +02:00 committed by Eric Engestrom
parent 543831aa9f
commit 2155cd545c
2 changed files with 4 additions and 1 deletions

View file

@ -2244,7 +2244,7 @@
"description": "etnaviv: re-emit uniforms on sampler view changes when txs is used",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "88f399b6515787adbe6e396df85fb5659797cb00",
"notes": null

View file

@ -182,6 +182,9 @@ etna_set_shader_uniforms_dirty_flags(struct etna_shader_variant *sobj)
case ETNA_UNIFORM_TEXRECT_SCALE_X:
case ETNA_UNIFORM_TEXRECT_SCALE_Y:
case ETNA_UNIFORM_TEXTURE_WIDTH:
case ETNA_UNIFORM_TEXTURE_HEIGHT:
case ETNA_UNIFORM_TEXTURE_DEPTH:
dirty |= ETNA_DIRTY_SAMPLER_VIEWS;
break;
}