[virglrenderer-devel] [PATCH 4/7] gallium: add PIPE_MAX_SHADER_IMAGES and image read/write defines.

Dave Airlie airlied at gmail.com
Fri Jul 20 04:50:39 UTC 2018


From: Dave Airlie <airlied at redhat.com>

This just brings over some defines from the gallium codebase.

Co-authors: Gurchetan Singh <gurchetansingh at chromium.org>
---
 src/gallium/include/pipe/p_defines.h | 8 ++++++++
 src/gallium/include/pipe/p_state.h   | 1 +
 2 files changed, 9 insertions(+)

diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 6bcb338..ebc1e68 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -484,6 +484,14 @@ enum pipe_flush_flags {
 
 #define PIPE_TIMEOUT_INFINITE 0xffffffffffffffffull
 
+/**
+ * pipe_image_view access flags.
+ */
+#define PIPE_IMAGE_ACCESS_READ       (1 << 0)
+#define PIPE_IMAGE_ACCESS_WRITE      (1 << 1)
+#define PIPE_IMAGE_ACCESS_READ_WRITE (PIPE_IMAGE_ACCESS_READ | \
+                                      PIPE_IMAGE_ACCESS_WRITE)
+
 /**
  * Implementation capabilities/limits which are queried through
  * pipe_screen::get_param()
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index c61e634..45d9cb7 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -62,6 +62,7 @@ extern "C" {
 #define PIPE_MAX_SHADER_OUTPUTS   48 /* 32 GENERICs + POS, PSIZE, FOG, etc. */
 #define PIPE_MAX_SHADER_SAMPLER_VIEWS 32
 #define PIPE_MAX_SHADER_BUFFERS   32
+#define PIPE_MAX_SHADER_IMAGES    32
 #define PIPE_MAX_TEXTURE_LEVELS   16
 #define PIPE_MAX_SO_BUFFERS        4
 #define PIPE_MAX_SO_OUTPUTS       64
-- 
2.14.3



More information about the virglrenderer-devel mailing list