diff options
author | Jan Zielinski <[email protected]> | 2019-07-02 16:44:34 +0200 |
---|---|---|
committer | Jan Zielinski <[email protected]> | 2019-07-03 14:43:28 +0200 |
commit | 243db4980c77e9d55b016ea79c4ddf075101bde0 (patch) | |
tree | a327fec19cdc5dee41058791f992b197e1509844 /src/gallium/drivers/swr/swr_clear.cpp | |
parent | c6cb9b197d4e82432cacae7cec04e7d6ee73ceba (diff) |
swr/swr: Enable ARB_viewport_array
The rasterizer core supported ARB_viewport_array,
but the swr layer connecting core to Gallium state
tracker only allowed one viewport.
We add support for multiple viewports to swr layer.
Reviewed-by: Alok Hota <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_clear.cpp')
-rw-r--r-- | src/gallium/drivers/swr/swr_clear.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_clear.cpp b/src/gallium/drivers/swr/swr_clear.cpp index 233432ee34a..3e02bda19c9 100644 --- a/src/gallium/drivers/swr/swr_clear.cpp +++ b/src/gallium/drivers/swr/swr_clear.cpp @@ -71,7 +71,7 @@ swr_clear(struct pipe_context *pipe, SWR_RECT clear_rect; /* If enabled, clear to scissor; otherwise clear full surface */ if (ctx->rasterizer && ctx->rasterizer->scissor) { - clear_rect = ctx->swr_scissor; + clear_rect = ctx->swr_scissors[0]; } else { clear_rect = {0, 0, (int32_t)fb->width, (int32_t)fb->height}; } |