diff options
author | Kenneth Graunke <[email protected]> | 2019-02-05 19:15:46 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-11 21:34:30 -0800 |
commit | 243c11dc1687b1f3adf0c96dd174803885704c48 (patch) | |
tree | 78f44b278c2e89ec4a583cd63c96a304866b9e1f /src/mesa/drivers | |
parent | 529a0711c1d07c109f83286583ed359a890f5a75 (diff) |
i965: Call nir_lower_samplers for ARB programs.
An upcoming patch will start building derefs in prog_to_nir, at which
point we'll need to lower them to indexes.
This gets both GLSL and non-GLSL shaders using the same paths.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_program.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index 1038d9a47a0..5dedca5a719 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -41,6 +41,7 @@ #include "util/ralloc.h" #include "compiler/glsl/ir.h" #include "compiler/glsl/program.h" +#include "compiler/glsl/gl_nir.h" #include "compiler/glsl/glsl_to_nir.h" #include "glsl/float64_glsl.h" @@ -151,6 +152,7 @@ brw_create_nir(struct brw_context *brw, } else { nir = prog_to_nir(prog, options); NIR_PASS_V(nir, nir_lower_regs_to_ssa); /* turn registers into SSA */ + NIR_PASS_V(nir, gl_nir_lower_samplers, NULL); } nir_validate_shader(nir, "before brw_preprocess_nir"); |