projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c403a52
)
radeonsi: use u_box_origin_2d helper function
author
Marek Olšák
<maraeo@gmail.com>
Tue, 19 Feb 2013 16:22:17 +0000
(17:22 +0100)
committer
Michel Dänzer
<michel@daenzer.net>
Wed, 20 Feb 2013 11:15:22 +0000
(12:15 +0100)
[ Cherry-picked from r600g commit
b278aba42310e8fa30f2408b9dcd58dbb4901724
]
NOTE: This is a candidate for the 9.1 branch.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/r600_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/r600_texture.c
b/src/gallium/drivers/radeonsi/r600_texture.c
index e8d9932e08eb1f29e1f9215786f02bc56ba86589..d54655441a004618ea3cb9f08f3ef0694a5a7e2c 100644
(file)
--- a/
src/gallium/drivers/radeonsi/r600_texture.c
+++ b/
src/gallium/drivers/radeonsi/r600_texture.c
@@
-55,11
+55,8
@@
static void r600_copy_from_staging_texture(struct pipe_context *ctx, struct r600
struct pipe_resource *texture = transfer->resource;
struct pipe_box sbox;
- sbox.x = sbox.y = sbox.z = 0;
- sbox.width = transfer->box.width;
- sbox.height = transfer->box.height;
- /* XXX that might be wrong */
- sbox.depth = 1;
+ u_box_origin_2d(transfer->box.width, transfer->box.height, &sbox);
+
ctx->resource_copy_region(ctx, texture, transfer->level,
transfer->box.x, transfer->box.y, transfer->box.z,
rtransfer->staging,