aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/bifrost.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-01 14:55:04 -0400
committerAlyssa Rosenzweig <[email protected]>2020-05-04 11:08:14 -0400
commit47c84ee73546f1b86df808c02aa509840e6158df (patch)
tree789061950bf14e32bc5e6d324b8a26a26c72500c /src/panfrost/bifrost/bifrost.h
parentc5ef35c4334d7a9e6fdc10cbf10d6f90b963e714 (diff)
pan/bi: Lower gl_FragCoord
We accept a sysval and emit various forms for each component. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
Diffstat (limited to 'src/panfrost/bifrost/bifrost.h')
-rw-r--r--src/panfrost/bifrost/bifrost.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h
index eba95f7d615..c4fd86b72bc 100644
--- a/src/panfrost/bifrost/bifrost.h
+++ b/src/panfrost/bifrost/bifrost.h
@@ -579,6 +579,10 @@ enum bifrost_interp_mode {
#define BIFROST_ADD_OP_LD_VAR_16 (0x1a << 1)
#define BIFROST_ADD_OP_LD_VAR_32 (0x0a << 1)
+/* Fixed location for gl_FragCoord.zw */
+#define BIFROST_FRAGZ (23)
+#define BIFROST_FRAGW (22)
+
struct bifrost_ld_var {
unsigned src0 : 3;