summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/radeonsi_pipe.c
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2012-09-07 16:09:08 +0200
committerMichel Dänzer <[email protected]>2012-09-11 11:06:56 +0200
commit9ccaa24f8493ebc4e5a606679490e4936ba3c624 (patch)
tree958d3aa35074bf423d8ec73eb42f1c02a00bd7a4 /src/gallium/drivers/radeonsi/radeonsi_pipe.c
parent03dfa305968adcf511f822757c106912419d6664 (diff)
radeonsi: Texture border colour fixes.
* Handle arbitrary border colours. * Use correct packing format for detecting special border colours. Fixes piglit tex-border-1 and probably many other tests using border colours. Signed-off-by: Michel Dänzer <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_pipe.c')
-rw-r--r--src/gallium/drivers/radeonsi/radeonsi_pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c
index 9d7ac51ef2f..03fe88dad2c 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c
@@ -172,6 +172,8 @@ static void r600_destroy_context(struct pipe_context *context)
{
struct r600_context *rctx = (struct r600_context *)context;
+ si_resource_reference(&rctx->border_color_table, NULL);
+
if (rctx->dummy_pixel_shader) {
rctx->context.delete_fs_state(&rctx->context, rctx->dummy_pixel_shader);
}