mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 11:10:10 +01:00
virgl: make sure bind is set for non-buffers
Otherwise, virglrenderer will reject the resource. Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
parent
afbd68378a
commit
f31b65f1c1
1 changed files with 3 additions and 0 deletions
|
|
@ -97,6 +97,9 @@ static void virgl_init_temp_resource_from_box(struct pipe_resource *res,
|
|||
else
|
||||
res->target = PIPE_TEXTURE_2D;
|
||||
|
||||
if (res->target != PIPE_BUFFER)
|
||||
res->bind = PIPE_BIND_RENDER_TARGET;
|
||||
|
||||
switch (res->target) {
|
||||
case PIPE_TEXTURE_1D_ARRAY:
|
||||
case PIPE_TEXTURE_2D_ARRAY:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue