[Mesa-dev] [PATCH] i965: fix tessellation regressions with gl_state_index16
Dave Airlie
airlied at gmail.com
Tue Feb 13 02:21:07 UTC 2018
From: Dave Airlie <airlied at redhat.com>
Looks like one conversion was missed.
Fixes: e149a0253 (mesa,glsl,nir: reduce gl_state_index size to 2 bytes)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105067
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
index 9c4fb22..10a4ff4 100644
--- a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
+++ b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
@@ -251,7 +251,7 @@ brw_nir_lower_patch_vertices_in_to_uniform(nir_shader *nir)
if (var->data.location != SYSTEM_VALUE_VERTICES_IN)
continue;
- gl_state_index tokens[STATE_LENGTH] = {
+ gl_state_index16 tokens[STATE_LENGTH] = {
STATE_INTERNAL,
nir->info.stage == MESA_SHADER_TESS_CTRL ?
STATE_TCS_PATCH_VERTICES_IN : STATE_TES_PATCH_VERTICES_IN,
--
2.9.5
More information about the mesa-dev
mailing list