diff options
author | Tim Rowley <[email protected]> | 2016-05-11 16:51:11 -0600 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2016-05-19 16:27:06 -0500 |
commit | 600528168bf9f4dc7c4b50c27286c53c8b31e9c2 (patch) | |
tree | 84c12b2f2050159271f764f793478d8e0cd97cf2 /src | |
parent | 6d212cccf0838fffadd0a5ea64a5ca81814e47fc (diff) |
swr: [rasterizer core] apply KNOB_TOSS_DRAW to more functions
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/api.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/api.cpp b/src/gallium/drivers/swr/rasterizer/core/api.cpp index 9d6f2509b14..8e0c1e1d2d8 100644 --- a/src/gallium/drivers/swr/rasterizer/core/api.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/api.cpp @@ -1281,6 +1281,11 @@ void SwrInvalidateTiles( HANDLE hContext, uint32_t attachmentMask) { + if (KNOB_TOSS_DRAW) + { + return; + } + SWR_CONTEXT *pContext = (SWR_CONTEXT*)hContext; DRAW_CONTEXT* pDC = GetDrawContext(pContext); @@ -1306,6 +1311,11 @@ void SwrDiscardRect( uint32_t attachmentMask, SWR_RECT rect) { + if (KNOB_TOSS_DRAW) + { + return; + } + SWR_CONTEXT *pContext = (SWR_CONTEXT*)hContext; DRAW_CONTEXT* pDC = GetDrawContext(pContext); @@ -1367,6 +1377,11 @@ void SwrStoreTiles( SWR_RENDERTARGET_ATTACHMENT attachment, SWR_TILE_STATE postStoreTileState) { + if (KNOB_TOSS_DRAW) + { + return; + } + RDTSC_START(APIStoreTiles); SWR_CONTEXT *pContext = (SWR_CONTEXT*)hContext; @@ -1392,6 +1407,11 @@ void SwrClearRenderTarget( float z, uint8_t stencil) { + if (KNOB_TOSS_DRAW) + { + return; + } + RDTSC_START(APIClearRenderTarget); SWR_CONTEXT *pContext = (SWR_CONTEXT*)hContext; |