diff options
author | Jason Ekstrand <[email protected]> | 2018-03-19 10:53:45 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-06-22 20:54:00 -0700 |
commit | 75286c2d083cdbdfb202a93349e567df0441d5f7 (patch) | |
tree | 1f94a06a9bb13fadef18039b4ef4de1b8bd863d0 /src/mesa/drivers/dri/i965 | |
parent | 36efae1d6647a0495fc368bda9e6d2c14b81f482 (diff) |
nir: Use derefs in nir_lower_samplers
We change glsl_to_nir to provide derefs for bot textures and samplers
while we're at it. This makes the lowering much easier since we only
either replace sources or remove them.
Acked-by: Rob Clark <[email protected]>
Acked-by: Bas Nieuwenhuizen <[email protected]>
Acked-by: Dave Airlie <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_program.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index aa2d86d1aa3..bc7b41086ff 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -79,10 +79,8 @@ brw_create_nir(struct brw_context *brw, if (shader_prog) { if (shader_prog->data->spirv) { nir = _mesa_spirv_to_nir(ctx, shader_prog, stage, options); - nir_lower_deref_instrs(nir, nir_lower_texture_derefs); } else { nir = glsl_to_nir(shader_prog, stage, options); - nir_lower_deref_instrs(nir, nir_lower_texture_derefs); } assert (nir); |