pan/bi: Add preliminary LOAD_UNIFORM implementation
Lots of things are missing (indirect access, UBOs) but we have this
stubbed out for now.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4097>
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h
index 18127ba..de417fb 100644
--- a/src/panfrost/bifrost/compiler.h
+++ b/src/panfrost/bifrost/compiler.h
@@ -59,6 +59,7 @@
BI_FMA,
BI_FREXP,
BI_LOAD,
+ BI_LOAD_UNIFORM,
BI_LOAD_ATTR,
BI_LOAD_VAR,
BI_LOAD_VAR_ADDRESS,
@@ -112,12 +113,12 @@
/* It can't get any worse than csel4... can it? */
#define BIR_SRC_COUNT 4
-/* Class-specific data for BI_LD_ATTR, BI_LD_VAR_ADDR */
+/* Class-specific data for BI_LOAD, BI_LD_ATTR, BI_LD_VAR_ADDR */
struct bi_load {
- /* Note: no indirects here */
+ /* Note: LD_ATTR does not support indirects */
unsigned location;
- /* Only for BI_LD_ATTR. But number of vector channels */
+ /* Number of vector channels */
unsigned channels;
};