summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-08-27 19:35:25 -0400
committerMarek Olšák <[email protected]>2019-09-09 23:43:03 -0400
commit66338631502b572594dce61ddce0406f0eaac5c3 (patch)
treeba6c65d030f06ac03b84d31380dd68dbe92d2f87 /src/gallium/drivers/r300
parent5ac69082631d4179c268aa3decf6267f697332a4 (diff)
r300,r600,radeonsi: set winsys_handle::stride,offset in drivers, not winsyses
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index 737a4f90418..f977dd14dc7 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -1049,8 +1049,10 @@ bool r300_resource_get_handle(struct pipe_screen* screen,
return false;
}
- return rws->buffer_get_handle(rws, tex->buf, tex->tex.stride_in_bytes[0],
- 0, 0, whandle);
+ whandle->stride = tex->tex.stride_in_bytes[0];
+ whandle->offset = 0;
+
+ return rws->buffer_get_handle(rws, tex->buf, whandle);
}
static const struct u_resource_vtbl r300_texture_vtbl =