summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_context.cpp
diff options
context:
space:
mode:
authorBruce Cherniak <[email protected]>2017-02-25 21:09:57 -0600
committerTim Rowley <[email protected]>2017-03-02 13:39:52 -0600
commitdd649a541d32a25b42044af59b0b17794a9466a4 (patch)
tree0b4901ba1cd66a4574bd7ce4fb54de105c1f6279 /src/gallium/drivers/swr/swr_context.cpp
parentb36050143f4ceecadbd1f5ffe5e3948486497387 (diff)
swr: enable clear_texture with util_clear_texture
Passes corresponding piglit tests. Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_context.cpp')
-rw-r--r--src/gallium/drivers/swr/swr_context.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_context.cpp b/src/gallium/drivers/swr/swr_context.cpp
index 3e17edc42dc..b89ce1ba621 100644
--- a/src/gallium/drivers/swr/swr_context.cpp
+++ b/src/gallium/drivers/swr/swr_context.cpp
@@ -486,6 +486,7 @@ swr_create_context(struct pipe_screen *p_screen, void *priv, unsigned flags)
ctx->pipe.buffer_subdata = u_default_buffer_subdata;
ctx->pipe.texture_subdata = u_default_texture_subdata;
+ ctx->pipe.clear_texture = util_clear_texture;
ctx->pipe.resource_copy_region = swr_resource_copy;
ctx->pipe.render_condition = swr_render_condition;