diff options
author | Chia-I Wu <[email protected]> | 2019-05-16 15:42:01 -0700 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-06-17 09:36:31 -0700 |
commit | 9975a0a84ca2ee18a0f051df44932bd7b2284a02 (patch) | |
tree | dd70f57ec75fc1763d6ed223c5520586bf61fdb1 /src/gallium/drivers/virgl/virgl_streamout.c | |
parent | 7e0508d9aa9575db7f608eae0c5337e2a0634197 (diff) |
virgl: add virgl_rebind_resource
We are going support reallocating the HW resource for a
virgl_resource. When that happens, the virgl_resource needs to be
rebound to the context.
Signed-off-by: Chia-I Wu <[email protected]>
Reviewed-by: Alexandros Frantzis <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_streamout.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_streamout.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_streamout.c b/src/gallium/drivers/virgl/virgl_streamout.c index 8fb7f26c868..edd5bc58f88 100644 --- a/src/gallium/drivers/virgl/virgl_streamout.c +++ b/src/gallium/drivers/virgl/virgl_streamout.c @@ -49,6 +49,7 @@ static struct pipe_stream_output_target *virgl_create_so_target( t->base.buffer_size = buffer_size; t->handle = handle; + res->bind_history |= PIPE_BIND_STREAM_OUTPUT; util_range_add(&res->valid_buffer_range, buffer_offset, buffer_offset + buffer_size); virgl_resource_dirty(res, 0); |