diff options
author | Dave Airlie <[email protected]> | 2018-08-03 15:19:41 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-08-14 16:55:56 +1000 |
commit | 0be5e9f5a1a7333c252d8b7c1da7b4ec0c4d21cf (patch) | |
tree | f27e60ad793b9d88999c526f3fd688c3593ff9af /src/gallium/drivers/virgl/virgl_encode.c | |
parent | 6d61aed2316218d76dc48e60c8ee5abd76c1fcbb (diff) |
virgl: ARB_texture_barrier support
Reviewed-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_encode.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_encode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_encode.c b/src/gallium/drivers/virgl/virgl_encode.c index 670c5fe6c3d..190c338f458 100644 --- a/src/gallium/drivers/virgl/virgl_encode.c +++ b/src/gallium/drivers/virgl/virgl_encode.c @@ -1009,3 +1009,11 @@ int virgl_encode_launch_grid(struct virgl_context *ctx, virgl_encoder_write_dword(ctx->cbuf, grid_info->indirect_offset); return 0; } + +int virgl_encode_texture_barrier(struct virgl_context *ctx, + unsigned flags) +{ + virgl_encoder_write_cmd_dword(ctx, VIRGL_CMD0(VIRGL_CCMD_TEXTURE_BARRIER, 0, 1)); + virgl_encoder_write_dword(ctx->cbuf, flags); + return 0; +} |