mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
nir: fix nir tex print harder
Fixes: 691d5a825a nir: rework tex instruction printing
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
96924aa92e
commit
b73dd91f60
1 changed files with 5 additions and 6 deletions
|
|
@ -914,14 +914,13 @@ print_tex_instr(nir_tex_instr *instr, print_state *state)
|
|||
|
||||
bool has_texture_deref = false, has_sampler_deref = false;
|
||||
for (unsigned i = 0; i < instr->num_srcs; i++) {
|
||||
print_src(&instr->src[i].src, state);
|
||||
|
||||
if (i == 0) {
|
||||
fprintf(fp, " ");
|
||||
} else {
|
||||
if (i > 0) {
|
||||
fprintf(fp, ", ");
|
||||
}
|
||||
|
||||
print_src(&instr->src[i].src, state);
|
||||
fprintf(fp, " ");
|
||||
|
||||
switch(instr->src[i].src_type) {
|
||||
case nir_tex_src_coord:
|
||||
fprintf(fp, "(coord)");
|
||||
|
|
@ -987,7 +986,7 @@ print_tex_instr(nir_tex_instr *instr, print_state *state)
|
|||
}
|
||||
|
||||
if (instr->op == nir_texop_tg4) {
|
||||
fprintf(fp, ", %u (gather_component), ", instr->component);
|
||||
fprintf(fp, ", %u (gather_component)", instr->component);
|
||||
}
|
||||
|
||||
if (nir_tex_instr_has_explicit_tg4_offsets(instr)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue