diff options
author | Dave Airlie <[email protected]> | 2018-02-13 12:21:07 +1000 |
---|---|---|
committer | Mark Janes <[email protected]> | 2018-02-12 23:05:16 -0800 |
commit | db5f4221696a665e403c8374d6c7d8794d810ae6 (patch) | |
tree | 8e105b19c387ea51cbcf7fe0abee48b7d33fb9a9 /src/mesa/drivers/dri | |
parent | 5e4a2b394eb03d5b49df8d3f2263c65b24ad2bb9 (diff) |
i965: fix tessellation regressions with gl_state_index16
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 <[email protected]>
Tested-by: Mark Janes <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp index 9c4fb22a905..10a4ff40e5e 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, |