diff options
author | Marek Olšák <[email protected]> | 2019-02-07 00:01:13 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-02-26 14:58:55 -0500 |
commit | a1378639ab19682a818ee627745db7f67485d406 (patch) | |
tree | 8c0229bbb0633b4ac6cdf95258c80f2a6d11b521 /src/gallium/drivers/radeonsi/si_clear.c | |
parent | c0110477b5503978adf37f64c65c30c9304e3fe4 (diff) |
radeonsi: always use compute rings for clover on CI and newer (v2)
initialize all non-compute context functions to NULL.
v2: fix SI
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_clear.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_clear.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_clear.c b/src/gallium/drivers/radeonsi/si_clear.c index 9a00bb73b94..e1805f2a1c9 100644 --- a/src/gallium/drivers/radeonsi/si_clear.c +++ b/src/gallium/drivers/radeonsi/si_clear.c @@ -771,8 +771,11 @@ static void si_clear_texture(struct pipe_context *pipe, void si_init_clear_functions(struct si_context *sctx) { - sctx->b.clear = si_clear; sctx->b.clear_render_target = si_clear_render_target; - sctx->b.clear_depth_stencil = si_clear_depth_stencil; sctx->b.clear_texture = si_clear_texture; + + if (sctx->has_graphics) { + sctx->b.clear = si_clear; + sctx->b.clear_depth_stencil = si_clear_depth_stencil; + } } |