nir: Get rid of nir_shader::stage
It's redundant with nir_shader::info::stage. Acked-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:

committed by
Jordan Justen

parent
341529dbee
commit
59fb59ad54
@@ -820,7 +820,8 @@ nir_lower_tex_block(nir_block *block, nir_builder *b,
|
||||
if ((nir_tex_instr_src_index(tex, nir_tex_src_lod) == -1) &&
|
||||
(tex->op == nir_texop_txf || tex->op == nir_texop_txs ||
|
||||
tex->op == nir_texop_txl || tex->op == nir_texop_query_levels ||
|
||||
(tex->op == nir_texop_tex && b->shader->stage != MESA_SHADER_FRAGMENT))) {
|
||||
(tex->op == nir_texop_tex &&
|
||||
b->shader->info.stage != MESA_SHADER_FRAGMENT))) {
|
||||
b->cursor = nir_before_instr(&tex->instr);
|
||||
nir_tex_instr_add_src(tex, nir_tex_src_lod, nir_src_for_ssa(nir_imm_int(b, 0)));
|
||||
progress = true;
|
||||
|
Reference in New Issue
Block a user