aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-11-22 13:10:18 +1100
committerTimothy Arceri <[email protected]>2017-01-19 17:05:26 +1100
commit5c93d274231ad36934c5338747ce14b95231031d (patch)
treecac5930dbde74297ae41d9769d1ec103f8daf2ee /src/mesa/drivers/dri
parent4cd709e2bcea479a723b4741de59b448b1c6c48f (diff)
mesa/glsl/i965: set and use tcs vertices_out directly
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_tcs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_tcs.c b/src/mesa/drivers/dri/i965/brw_tcs.c
index bbba7496fa6..cafa4b4b411 100644
--- a/src/mesa/drivers/dri/i965/brw_tcs.c
+++ b/src/mesa/drivers/dri/i965/brw_tcs.c
@@ -380,10 +380,8 @@ brw_tcs_precompile(struct gl_context *ctx,
brw_setup_tex_for_precompile(brw, &key.tex, prog);
/* Guess that the input and output patches have the same dimensionality. */
- if (brw->gen < 8) {
- key.input_vertices = shader_prog->
- _LinkedShaders[MESA_SHADER_TESS_CTRL]->info.TessCtrl.VerticesOut;
- }
+ if (brw->gen < 8)
+ key.input_vertices = prog->info.tess.tcs_vertices_out;
struct brw_program *btep;
if (tes) {