summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-11-09 13:58:37 -0600
committerTim Rowley <[email protected]>2016-11-14 09:02:59 -0600
commit23e459b6065e12299b3644ccb1a79d6f17f188ee (patch)
tree0fc0cb24689536aa363f0f70f2cbc03fe5e18266 /src/gallium/drivers/swr
parente9a3ad164db220d4517a3bb684ce6d01d01f0087 (diff)
swr: [rasterizer core] add mode for aux buffer in the SWR_SURFACE_STATE
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/state.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/state.h b/src/gallium/drivers/swr/rasterizer/core/state.h
index 24927cd20b8..062a1defbcc 100644
--- a/src/gallium/drivers/swr/rasterizer/core/state.h
+++ b/src/gallium/drivers/swr/rasterizer/core/state.h
@@ -480,6 +480,21 @@ enum SWR_LOGIC_OP
LOGICOP_SET,
};
+//////////////////////////////////////////////////////////////////////////
+/// SWR_AUX_MODE
+/// @brief Specifies how the auxiliary buffer is used by the driver.
+//////////////////////////////////////////////////////////////////////////
+enum SWR_AUX_MODE
+{
+ AUX_MODE_NONE,
+ AUX_MODE_COLOR,
+ AUX_MODE_UAV,
+ AUX_MODE_DEPTH,
+};
+
+//////////////////////////////////////////////////////////////////////////
+/// SWR_SURFACE_STATE
+//////////////////////////////////////////////////////////////////////////
struct SWR_SURFACE_STATE
{
uint8_t *pBaseAddress;
@@ -506,6 +521,7 @@ struct SWR_SURFACE_STATE
uint32_t lodOffsets[2][15]; // lod offsets for sampled surfaces
uint8_t *pAuxBaseAddress; // Used for compression, append/consume counter, etc.
+ SWR_AUX_MODE auxMode; // @llvm_enum
bool bInterleavedSamples; // are MSAA samples stored interleaved or planar
};