summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_print.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-04-26 10:05:08 -0700
committerRob Clark <[email protected]>2019-05-02 11:19:22 -0700
commita99c360a463019a4aca9b551bd79c9c84f297468 (patch)
tree801629db49799e8cb525fa1b4da5b5b5d0c8652e /src/compiler/nir/nir_print.c
parenta2c89a85f4f69b5eacc8052d6cc4f4efd07a1294 (diff)
nir: add pass to lower fb reads
Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_print.c')
-rw-r--r--src/compiler/nir/nir_print.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index be36469fecb..46995766974 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -883,6 +883,9 @@ print_tex_instr(nir_tex_instr *instr, print_state *state)
case nir_texop_txf_ms:
fprintf(fp, "txf_ms ");
break;
+ case nir_texop_txf_ms_fb:
+ fprintf(fp, "txf_ms_fb ");
+ break;
case nir_texop_txf_ms_mcs:
fprintf(fp, "txf_ms_mcs ");
break;
@@ -995,12 +998,14 @@ print_tex_instr(nir_tex_instr *instr, print_state *state)
fprintf(fp, " } (offsets)");
}
- if (!has_texture_deref) {
- fprintf(fp, ", %u (texture)", instr->texture_index);
- }
+ if (instr->op != nir_texop_txf_ms_fb) {
+ if (!has_texture_deref) {
+ fprintf(fp, ", %u (texture)", instr->texture_index);
+ }
- if (!has_sampler_deref) {
- fprintf(fp, ", %u (sampler)", instr->sampler_index);
+ if (!has_sampler_deref) {
+ fprintf(fp, ", %u (sampler)", instr->sampler_index);
+ }
}
}