diff options
author | Tim Rowley <[email protected]> | 2017-05-16 16:51:58 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-05-30 17:21:30 -0500 |
commit | fb9f7bd717dbaf94a744d352029603a273c7d332 (patch) | |
tree | d9b0e2a36adaf7b3ed1777aa8834945af6b93698 /src/gallium/drivers/swr | |
parent | 2438932b7e66c5cd496bdd19e6d96d168b3dd2c8 (diff) |
swr/rast: add renderTargetArrayIndex to SWR_PS_CONTEXT
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/backend.h | 1 | ||||
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/state.h | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/backend.h b/src/gallium/drivers/swr/rasterizer/core/backend.h index 7bb1f5585fb..dba5041140f 100644 --- a/src/gallium/drivers/swr/rasterizer/core/backend.h +++ b/src/gallium/drivers/swr/rasterizer/core/backend.h @@ -499,6 +499,7 @@ void SetupPixelShaderContext(SWR_PS_CONTEXT *psContext, const SWR_MULTISAMPLE_PO psContext->pPerspAttribs = work.pPerspAttribs; psContext->frontFace = work.triFlags.frontFacing; psContext->primID = work.triFlags.primID; + psContext->renderTargetArrayIndex = work.triFlags.renderTargetArrayIndex; // save Ia/Ib/Ic and Ja/Jb/Jc if we need to reevaluate i/j/k in the shader because of pull attribs psContext->I = work.I; diff --git a/src/gallium/drivers/swr/rasterizer/core/state.h b/src/gallium/drivers/swr/rasterizer/core/state.h index 8812fbaab5f..75d1210cce3 100644 --- a/src/gallium/drivers/swr/rasterizer/core/state.h +++ b/src/gallium/drivers/swr/rasterizer/core/state.h @@ -342,11 +342,11 @@ struct SWR_PS_CONTEXT simdvector shaded[SWR_NUM_RENDERTARGETS]; // OUT: result color per rendertarget - uint32_t frontFace; // IN: front- 1, back- 0 - uint32_t primID; // IN: primitive ID - uint32_t sampleIndex; // IN: sampleIndex - - uint32_t rasterizerSampleCount; // IN: sample count used by the rasterizer + uint32_t frontFace; // IN: front- 1, back- 0 + uint32_t primID; // IN: primitive ID + uint32_t sampleIndex; // IN: sampleIndex + uint32_t renderTargetArrayIndex; // IN: render target array index from GS + uint32_t rasterizerSampleCount; // IN: sample count used by the rasterizer uint8_t* pColorBuffer[SWR_NUM_RENDERTARGETS]; // IN: Pointers to render target hottiles }; |