aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/vs-test.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <[email protected]>2020-03-24 12:02:51 -0400
committerMarge Bot <[email protected]>2020-04-29 18:05:06 +0000
commit1c8bcad81a7ce106b37f1ee4a75b817651d6545e (patch)
tree89ce4e4e5cfb117422582b12c284f261b9944ba7 /src/gallium/tests/graw/vs-test.c
parent882928dcaa2133fe07b73e7e962d50625c8e6a03 (diff)
gallium: add pipe cap for scissored clears and pass scissor state to clear() hook
this adds a new pipe cap that drivers can support which enables passing buffer clears with scissor test enabled through to be handled by the driver instead of having mesa draw a quad also adjust all existing clear() hooks to have the new parameter Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Vasily Khoruzhick <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4310>
Diffstat (limited to 'src/gallium/tests/graw/vs-test.c')
-rw-r--r--src/gallium/tests/graw/vs-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/tests/graw/vs-test.c b/src/gallium/tests/graw/vs-test.c
index b3714543b3a..1b96914ad2a 100644
--- a/src/gallium/tests/graw/vs-test.c
+++ b/src/gallium/tests/graw/vs-test.c
@@ -220,7 +220,7 @@ static void draw( void )
{
union pipe_color_union clear_color = { {.1,.3,.5,0} };
- ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
+ ctx->clear(ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0);
util_draw_arrays(ctx, PIPE_PRIM_POINTS, 0, ARRAY_SIZE(vertices));
ctx->flush(ctx, NULL, 0);