Mesa (main): r600: Don't set TES_EVAL UCP dirty when it is not supported
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jul 28 15:45:53 UTC 2022
Module: Mesa
Branch: main
Commit: 91c0d46afd4d49f392037a32620ef8dfd3e55e59
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=91c0d46afd4d49f392037a32620ef8dfd3e55e59
Author: Gert Wollny <gert.wollny at collabora.com>
Date: Thu Jul 28 17:28:35 2022 +0200
r600: Don't set TES_EVAL UCP dirty when it is not supported
Fixes: 3340c7ce359252ad09b3e4d338837944482fb248
r600/sfn: lower CLIPVERTEX to clip planes
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17793>
---
src/gallium/drivers/r600/r600_state_common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
index 8e1c061c37b..df4c64c8e09 100644
--- a/src/gallium/drivers/r600/r600_state_common.c
+++ b/src/gallium/drivers/r600/r600_state_common.c
@@ -284,8 +284,9 @@ static void r600_set_clip_state(struct pipe_context *ctx,
rctx->clip_state.state = *state;
r600_mark_atom_dirty(rctx, &rctx->clip_state.atom);
rctx->driver_consts[PIPE_SHADER_VERTEX].vs_ucp_dirty = true;
- rctx->driver_consts[PIPE_SHADER_TESS_EVAL].vs_ucp_dirty = true;
rctx->driver_consts[PIPE_SHADER_GEOMETRY].vs_ucp_dirty = true;
+ if (rctx->b.family >= CHIP_CEDAR)
+ rctx->driver_consts[PIPE_SHADER_TESS_EVAL].vs_ucp_dirty = true;
}
static void r600_set_stencil_ref(struct pipe_context *ctx,
More information about the mesa-commit
mailing list