r600: rename sh_txs_cube_array_comp to sh_resinfo_via_uniform

Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39650>
This commit is contained in:
Patrick Lerda 2026-02-02 13:34:10 +01:00 committed by Marge Bot
parent 89dd088871
commit 34336c7f16
8 changed files with 12 additions and 12 deletions

View file

@ -321,7 +321,7 @@ static void compute_emit_cs(struct r600_context *rctx,
}
bool need_buf_const = current->shader.uses_tex_buffers ||
current->shader.has_txq_cube_array_z_comp;
current->shader.has_resinfo_via_uniform;
if (info->indirect) {
struct r600_resource *indirect_resource = r600_as_resource(info->indirect);

View file

@ -85,7 +85,7 @@ void print_shader_info(FILE *f , int id, struct r600_shader *shader)
PRINT_UINT_MEMBER(vs_out_layer);
PRINT_UINT_MEMBER(vs_out_viewport);
PRINT_UINT_MEMBER(vs_out_edgeflag);
PRINT_UINT_MEMBER(has_txq_cube_array_z_comp);
PRINT_UINT_MEMBER(has_resinfo_via_uniform);
PRINT_UINT_MEMBER(uses_tex_buffers);
PRINT_UINT_MEMBER(gs_prim_id_input);
PRINT_UINT_MEMBER(gs_tri_strip_adj_fix);

View file

@ -85,7 +85,7 @@ struct r600_shader {
bool vs_out_layer;
bool vs_out_viewport;
bool vs_out_edgeflag;
bool has_txq_cube_array_z_comp;
bool has_resinfo_via_uniform;
bool uses_tex_buffers;
bool gs_prim_id_input;
bool gs_tri_strip_adj_fix;

View file

@ -1992,21 +1992,21 @@ static bool r600_update_derived_state(struct r600_context *rctx)
/* on R600 we stuff masks + txq info into one constant buffer */
/* on evergreen we only need a txq info one */
if (rctx->ps_shader) {
need_buf_const = rctx->ps_shader->current->shader.uses_tex_buffers || rctx->ps_shader->current->shader.has_txq_cube_array_z_comp;
need_buf_const = rctx->ps_shader->current->shader.uses_tex_buffers || rctx->ps_shader->current->shader.has_resinfo_via_uniform;
if (need_buf_const) {
rctx->setup_buffer_constants(rctx, MESA_SHADER_FRAGMENT);
}
}
if (rctx->vs_shader) {
need_buf_const = rctx->vs_shader->current->shader.uses_tex_buffers || rctx->vs_shader->current->shader.has_txq_cube_array_z_comp;
need_buf_const = rctx->vs_shader->current->shader.uses_tex_buffers || rctx->vs_shader->current->shader.has_resinfo_via_uniform;
if (need_buf_const) {
rctx->setup_buffer_constants(rctx, MESA_SHADER_VERTEX);
}
}
if (rctx->gs_shader) {
need_buf_const = rctx->gs_shader->current->shader.uses_tex_buffers || rctx->gs_shader->current->shader.has_txq_cube_array_z_comp;
need_buf_const = rctx->gs_shader->current->shader.uses_tex_buffers || rctx->gs_shader->current->shader.has_resinfo_via_uniform;
if (need_buf_const) {
rctx->setup_buffer_constants(rctx, MESA_SHADER_GEOMETRY);
}
@ -2015,13 +2015,13 @@ static bool r600_update_derived_state(struct r600_context *rctx)
if (rctx->tes_shader) {
assert(rctx->b.gfx_level >= EVERGREEN);
need_buf_const = rctx->tes_shader->current->shader.uses_tex_buffers ||
rctx->tes_shader->current->shader.has_txq_cube_array_z_comp;
rctx->tes_shader->current->shader.has_resinfo_via_uniform;
if (need_buf_const) {
rctx->setup_buffer_constants(rctx, MESA_SHADER_TESS_EVAL);
}
if (rctx->tcs_shader) {
need_buf_const = rctx->tcs_shader->current->shader.uses_tex_buffers ||
rctx->tcs_shader->current->shader.has_txq_cube_array_z_comp;
rctx->tcs_shader->current->shader.has_resinfo_via_uniform;
if (need_buf_const) {
rctx->setup_buffer_constants(rctx, MESA_SHADER_TESS_CTRL);
}

View file

@ -974,7 +974,7 @@ RatInstr::emit_image_size(nir_intrinsic_instr *intrin, Shader& shader)
res_id,
dyn_offset));
shader.set_flag(Shader::sh_txs_cube_array_comp);
shader.set_flag(Shader::sh_resinfo_via_uniform);
if (const_offset) {
unsigned lookup_resid = (res_id - R600_IMAGE_REAL_RESOURCE_OFFSET) +

View file

@ -691,7 +691,7 @@ TexInstr::emit_tex_txs(nir_tex_instr *tex,
auto alu = new AluInstr(op1_mov, dest[2], src_loc, AluInstr::write);
shader.emit_instruction(alu);
shader.set_flag(Shader::sh_txs_cube_array_comp);
shader.set_flag(Shader::sh_resinfo_via_uniform);
}
}

View file

@ -1822,7 +1822,7 @@ Shader::get_shader_info(r600_shader *sh_info)
sh_info->uses_images = m_flags.test(sh_uses_images);
sh_info->uses_atomics = m_flags.test(sh_uses_atomics);
sh_info->disable_sb = m_flags.test(sh_disble_sb);
sh_info->has_txq_cube_array_z_comp = m_flags.test(sh_txs_cube_array_comp);
sh_info->has_resinfo_via_uniform = m_flags.test(sh_resinfo_via_uniform);
sh_info->indirect_files = m_indirect_files;
do_get_shader_info(sh_info);
}

View file

@ -219,7 +219,7 @@ public:
sh_uses_images,
sh_uses_tex_buffer,
sh_writes_memory,
sh_txs_cube_array_comp,
sh_resinfo_via_uniform,
sh_indirect_atomic,
sh_mem_barrier,
sh_legacy_math_rules,