[Mesa-dev] [PATCH 34/70] i965: stop depending on gl_shader_program for brw_compute_vue_map() params
Timothy Arceri
timothy.arceri at collabora.com
Fri Nov 11 00:46:16 UTC 2016
This removes another dependency on gl_shader_program from the codegen functions,
this will help allow us to use gl_program for the CurrentProgram array rather
than gl_shader_program.
---
src/mesa/drivers/dri/i965/brw_gs.c | 2 +-
src/mesa/drivers/dri/i965/brw_vs.c | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c
index 1d727cf..5d42680 100644
--- a/src/mesa/drivers/dri/i965/brw_gs.c
+++ b/src/mesa/drivers/dri/i965/brw_gs.c
@@ -138,7 +138,7 @@ brw_codegen_gs_prog(struct brw_context *brw,
brw_compute_vue_map(devinfo,
&prog_data.base.vue_map, outputs_written,
- prog->SeparateShader);
+ gp->program.info.separate_shader);
int st_index = -1;
if (INTEL_DEBUG & DEBUG_SHADER_TIME)
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c
index 7d77e58..d134d17 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.c
+++ b/src/mesa/drivers/dri/i965/brw_vs.c
@@ -209,11 +209,11 @@ brw_codegen_vs_prog(struct brw_context *brw,
((1 << vp->program.CullDistanceArraySize) - 1) <<
vp->program.ClipDistanceArraySize;
- brw_compute_vue_map(devinfo,
- &prog_data.base.vue_map, outputs_written,
- prog ? prog->SeparateShader ||
- prog->_LinkedShaders[MESA_SHADER_TESS_EVAL]
- : false);
+ bool is_tes_linked =
+ vp->program.sh.data->linked_stages & 1 << MESA_SHADER_TESS_EVAL;
+ brw_compute_vue_map(devinfo, &prog_data.base.vue_map, outputs_written,
+ prog ? vp->program.info.separate_shader ||
+ is_tes_linked : false);
if (0) {
_mesa_fprint_program_opt(stderr, &vp->program, PROG_PRINT_DEBUG, true);
--
2.7.4
More information about the mesa-dev
mailing list