From fd849b2ebc0e09cee28f5c39039125292f2532ee Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 20 Jul 2018 08:40:38 +1000 Subject: [PATCH] gallium: add PIPE_MAX_SHADER_IMAGES and image read/write defines. This just brings over some defines from the gallium codebase. Co-authors: Gurchetan Singh Reviewed-By: Gert Wollny --- 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