summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-04-07 15:14:16 -0700
committerKenneth Graunke <[email protected]>2015-04-10 02:16:29 -0700
commit99264b7f37dc92bcb3a9ae226e00c9300414431c (patch)
treea9cf3e96b8f37330f147038930c15c30eb31ba93 /src/mesa
parent4b27391cadcc789a3befbd2b5a846012afa069b8 (diff)
nir: Make nir_lower_samplers take a gl_shader_stage, not a gl_program *.
We don't actually need a gl_program struct. We only used it to translate prog->Target (i.e. GL_VERTEX_PROGRAM) to the gl_shader_stage (i.e. MESA_SHADER_VERTEX). We may as well just pass that. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_nir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index a874337bb6b..7c56290ed70 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -141,7 +141,7 @@ fs_visitor::emit_nir_code()
nir_validate_shader(nir);
if (shader_prog) {
- nir_lower_samplers(nir, shader_prog, shader->base.Program);
+ nir_lower_samplers(nir, shader_prog, stage);
nir_validate_shader(nir);
}