diff options
author | Timothy Arceri <[email protected]> | 2016-10-05 16:24:56 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-10-06 16:04:03 +1100 |
commit | 7ef8286487562e1e8678ccc514e4054a682c0c89 (patch) | |
tree | faea4e804b2ed47a6aba0aef20fbbbc29b39901f /src/mesa/drivers/dri/i965/brw_tes.c | |
parent | b526a9b708b48c3d1c394783cba99f11eb17d0b9 (diff) |
i965: get outputs written from nir info
This is a step towards dropping the GLSL IR version of
do_set_program_inouts() in i965 and moving towards native nir support.
This is important because we want to eventually convert to nir and
use its optimisations passes before we can call this GLSL IR pass.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_tes.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_tes.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_tes.c b/src/mesa/drivers/dri/i965/brw_tes.c index 2c43a3e058f..d1f56bde606 100644 --- a/src/mesa/drivers/dri/i965/brw_tes.c +++ b/src/mesa/drivers/dri/i965/brw_tes.c @@ -250,8 +250,10 @@ brw_tes_populate_key(struct brw_context *brw, * be stored in the Patch URB Entry as well. */ if (brw->tess_ctrl_program) { - per_vertex_slots |= brw->tess_ctrl_program->Base.OutputsWritten; - per_patch_slots |= brw->tess_ctrl_program->Base.PatchOutputsWritten; + per_vertex_slots |= + brw->tess_ctrl_program->Base.nir->info.outputs_written; + per_patch_slots |= + brw->tess_ctrl_program->Base.nir->info.patch_outputs_written; } /* Ignore gl_TessLevelInner/Outer - we treat them as system values, @@ -318,8 +320,8 @@ brw_tes_precompile(struct gl_context *ctx, if (shader_prog->_LinkedShaders[MESA_SHADER_TESS_CTRL]) { struct gl_program *tcp = shader_prog->_LinkedShaders[MESA_SHADER_TESS_CTRL]->Program; - key.inputs_read |= tcp->OutputsWritten; - key.patch_inputs_read |= tcp->PatchOutputsWritten; + key.inputs_read |= tcp->nir->info.outputs_written; + key.patch_inputs_read |= tcp->nir->info.patch_outputs_written; } /* Ignore gl_TessLevelInner/Outer - they're system values. */ |