summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/include
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-02-14 02:44:03 +0000
committerAlyssa Rosenzweig <[email protected]>2019-02-15 07:45:56 +0000
commit2d22b5380cc0b66efb38f2d9cd09af8eab602011 (patch)
tree0b90c262bd589a30d9b18a9f6d1d67d5b867900f /src/gallium/drivers/panfrost/include
parent595af46f0f641db393b26afa55f3996f2ca602e9 (diff)
panfrost: Identify MALI_OCCLUSION_PRECISE bit
Setting this is required for desktop-style occlusion queries. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/include')
-rw-r--r--src/gallium/drivers/panfrost/include/panfrost-job.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/drivers/panfrost/include/panfrost-job.h b/src/gallium/drivers/panfrost/include/panfrost-job.h
index 3b51fcfddef..e11f4395e57 100644
--- a/src/gallium/drivers/panfrost/include/panfrost-job.h
+++ b/src/gallium/drivers/panfrost/include/panfrost-job.h
@@ -69,14 +69,16 @@ enum mali_draw_mode {
/* Applies to tiler_gl_enables */
-#define MALI_CULL_FACE_BACK 0x80
-#define MALI_CULL_FACE_FRONT 0x40
-#define MALI_FRONT_FACE(v) (v << 5)
+#define MALI_OCCLUSION_QUERY (1 << 3)
+#define MALI_OCCLUSION_PRECISE (1 << 4)
+
+#define MALI_FRONT_FACE(v) (v << 5)
#define MALI_CCW (0)
#define MALI_CW (1)
-#define MALI_OCCLUSION_BOOLEAN 0x8
+#define MALI_CULL_FACE_FRONT (1 << 6)
+#define MALI_CULL_FACE_BACK (1 << 7)
/* TODO: Might this actually be a finer bitfield? */
#define MALI_DEPTH_STENCIL_ENABLE 0x6400