diff options
author | Dave Airlie <[email protected]> | 2018-06-14 14:51:04 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-08-22 05:05:21 +1000 |
commit | 41d58e20983576212636c11afd6ca25ebd60b68f (patch) | |
tree | bcd0095cf4b21d4672ad4a45ba06a931a7c94402 /src/gallium/drivers/virgl/virgl_encode.c | |
parent | aa79cc2bc8e27febc159bafe7bdb52e866b8a9ec (diff) |
virgl: ARB_enhanced_layouts support
We need to handle the gaps in the streamout bindings on the guest
side and enable if it the host has the rest enabled.
Reviewed-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_encode.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_encode.c b/src/gallium/drivers/virgl/virgl_encode.c index 190c338f458..c09eb5a6382 100644 --- a/src/gallium/drivers/virgl/virgl_encode.c +++ b/src/gallium/drivers/virgl/virgl_encode.c @@ -880,7 +880,7 @@ int virgl_encoder_set_so_targets(struct virgl_context *ctx, virgl_encoder_write_dword(ctx->cbuf, append_bitmask); for (i = 0; i < num_targets; i++) { struct virgl_so_target *tg = virgl_so_target(targets[i]); - virgl_encoder_write_dword(ctx->cbuf, tg->handle); + virgl_encoder_write_dword(ctx->cbuf, tg ? tg->handle : 0); } return 0; } |