diff options
author | Erik Faye-Lund <[email protected]> | 2018-07-20 11:10:20 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-08-01 14:03:51 +1000 |
commit | 7ef86a03f01b63256f7bfef2892cfbbc4c7eb713 (patch) | |
tree | 8f6f40e347a4610c03b07e1b0bffd4f4f1830ffe /src | |
parent | 6f5d463a7860b02f2d0a6f20377626bef770aa78 (diff) |
virgl: add texture_barrier stub
In gallium, supporting FBFETCH means supporting non-coherent fetches, but
in virglrenderer, due to technical reasons this is backed by coherent
fetches instead. This means we don't need to do anything for the barriers.
However, if we don't have a texture_barrier implementation, we get crashes
because the non-coherent extensions is exposed.
So, let's leave this as a NOP for now.
[airlied: I've got a more complete impl of this somewhere, once we
land the host side].
Reviewed-by: Dave Airlie <[email protected]>
Signed-off-by: Erik Faye-Lund <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c index ae1da337994..d1a1c98660e 100644 --- a/src/gallium/drivers/virgl/virgl_context.c +++ b/src/gallium/drivers/virgl/virgl_context.c @@ -804,6 +804,12 @@ static void virgl_set_sampler_views(struct pipe_context *ctx, virgl_attach_res_sampler_views(vctx, shader_type); } +static void +virgl_texture_barrier(struct pipe_context *pctx, unsigned flags) +{ + /* stub */ +} + static void virgl_destroy_sampler_view(struct pipe_context *ctx, struct pipe_sampler_view *view) { @@ -1174,6 +1180,7 @@ struct pipe_context *virgl_context_create(struct pipe_screen *pscreen, vctx->base.create_sampler_view = virgl_create_sampler_view; vctx->base.sampler_view_destroy = virgl_destroy_sampler_view; vctx->base.set_sampler_views = virgl_set_sampler_views; + vctx->base.texture_barrier = virgl_texture_barrier; vctx->base.create_sampler_state = virgl_create_sampler_state; vctx->base.delete_sampler_state = virgl_delete_sampler_state; |