pan/bi: Pull out bifrost_load_var

We're not using this structure yet but we want everything in the ISA
ready for us.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
This commit is contained in:
Alyssa Rosenzweig
2020-03-02 21:45:47 -05:00
committed by Marge Bot
parent aa2f12de56
commit 6a7987aba1
2 changed files with 24 additions and 4 deletions
+20
View File
@@ -184,6 +184,26 @@ struct bifrost_ld_attr {
unsigned op : 5;
};
enum bifrost_interp_mode {
BIFROST_INTERP_PER_FRAG = 0x0,
BIFROST_INTERP_CENTROID = 0x1,
BIFROST_INTERP_DEFAULT = 0x2,
BIFROST_INTERP_EXPLICIT = 0x3
};
struct bifrost_ld_var {
unsigned src0 : 3;
/* If top two bits set, indirect with src in bottom three */
unsigned addr : 5;
unsigned channels : 2; /* MALI_POSITIVE */
enum bifrost_interp_mode interp_mode : 2;
unsigned reuse : 1;
unsigned flat : 1;
unsigned op : 6;
};
struct bifrost_tex_ctrl {
unsigned sampler_index : 4; // also used to signal indirects
unsigned tex_index : 7;
+4 -4
View File
@@ -1324,15 +1324,15 @@ static void dump_add(FILE *fp, uint64_t word, struct bifrost_regs regs,
if (ADD.op & 0x400)
fprintf(fp, ".flat");
switch ((ADD.op >> 7) & 0x3) {
case 0:
case BIFROST_INTERP_PER_FRAG:
fprintf(fp, ".per_frag");
break;
case 1:
case BIFROST_INTERP_CENTROID:
fprintf(fp, ".centroid");
break;
case 2:
case BIFROST_INTERP_DEFAULT:
break;
case 3:
case BIFROST_INTERP_EXPLICIT:
fprintf(fp, ".explicit");
break;
}