diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 02:43:44 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 02:43:44 +0000 |
commit | f00235c070468f96521cd88ebc8919fa0cb89a25 (patch) | |
tree | 893b78bc6061f01f00807acbd0b9dc724703a33b /lib/mesa/src/gallium/tests/graw/clear.c | |
parent | f5c2c82a99d05995f5189545c1eeac685ff5108f (diff) |
import Mesa 11.0.6
Diffstat (limited to 'lib/mesa/src/gallium/tests/graw/clear.c')
-rw-r--r-- | lib/mesa/src/gallium/tests/graw/clear.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mesa/src/gallium/tests/graw/clear.c b/lib/mesa/src/gallium/tests/graw/clear.c index d46b9c90c..f38da4740 100644 --- a/lib/mesa/src/gallium/tests/graw/clear.c +++ b/lib/mesa/src/gallium/tests/graw/clear.c @@ -3,7 +3,7 @@ */ #include <stdio.h> -#include "frontend/graw.h" +#include "state_tracker/graw.h" #include "pipe/p_screen.h" #include "pipe/p_context.h" #include "pipe/p_state.h" @@ -28,12 +28,12 @@ static void draw( void ) { union pipe_color_union clear_color = { {1, 0, 1, 1} }; - ctx->clear(ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); + ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); ctx->flush(ctx, NULL, 0); graw_save_surface_to_file(ctx, surf, NULL); - screen->flush_frontbuffer(screen, ctx, tex, 0, 0, window, NULL); + screen->flush_frontbuffer(screen, tex, 0, 0, window, NULL); } static void init( void ) @@ -61,11 +61,10 @@ static void init( void ) exit(1); } - ctx = screen->context_create(screen, NULL, 0); + ctx = screen->context_create(screen, NULL); if (ctx == NULL) exit(3); - memset(&templat, 0, sizeof(templat)); templat.target = PIPE_TEXTURE_2D; templat.format = formats[i]; templat.width0 = WIDTH; @@ -73,6 +72,7 @@ static void init( void ) templat.depth0 = 1; templat.array_size = 1; templat.last_level = 0; + templat.nr_samples = 1; templat.bind = (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET); |