diff options
Diffstat (limited to 'lib/mesa/src/gallium/drivers/softpipe/sp_context.c')
-rw-r--r-- | lib/mesa/src/gallium/drivers/softpipe/sp_context.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mesa/src/gallium/drivers/softpipe/sp_context.c b/lib/mesa/src/gallium/drivers/softpipe/sp_context.c index ee668330e..ef3c9e160 100644 --- a/lib/mesa/src/gallium/drivers/softpipe/sp_context.c +++ b/lib/mesa/src/gallium/drivers/softpipe/sp_context.c @@ -54,6 +54,8 @@ #include "sp_tex_sample.h" #include "sp_image.h" +#include "nir.h" + static void softpipe_destroy( struct pipe_context *pipe ) { @@ -81,11 +83,10 @@ softpipe_destroy( struct pipe_context *pipe ) for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) { sp_destroy_tile_cache(softpipe->cbuf_cache[i]); - pipe_surface_reference(&softpipe->framebuffer.cbufs[i], NULL); } sp_destroy_tile_cache(softpipe->zsbuf_cache); - pipe_surface_reference(&softpipe->framebuffer.zsbuf, NULL); + util_unreference_framebuffer_state(&softpipe->framebuffer); for (sh = 0; sh < ARRAY_SIZE(softpipe->tex_cache); sh++) { for (i = 0; i < ARRAY_SIZE(softpipe->tex_cache[0]); i++) { @@ -321,7 +322,7 @@ softpipe_create_context(struct pipe_screen *screen, /* plug in AA line/point stages */ draw_install_aaline_stage(softpipe->draw, &softpipe->pipe); - draw_install_aapoint_stage(softpipe->draw, &softpipe->pipe); + draw_install_aapoint_stage(softpipe->draw, &softpipe->pipe, nir_type_bool32); /* Do polygon stipple w/ texture map + frag prog. */ draw_install_pstipple_stage(softpipe->draw, &softpipe->pipe); |