projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ede67a
)
r600g,radeonsi: Use staging texture for transfers if any miplevel is tiled
author
Michel Dänzer
<michel.daenzer@amd.com>
Wed, 8 Oct 2014 07:01:47 +0000
(16:01 +0900)
committer
Michel Dänzer
<michel@daenzer.net>
Wed, 15 Oct 2014 07:26:14 +0000
(16:26 +0900)
We set the NO_CPU_ACCESS flag for BO allocation in that case, so direct CPU
access may not work.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeon/r600_texture.c
b/src/gallium/drivers/radeon/r600_texture.c
index 17aca01ad9f41a617ff9fea2c2c04c8c27e4ac85..13df49533a7da822a8db110ecb4525aaf165456e 100644
(file)
--- a/
src/gallium/drivers/radeon/r600_texture.c
+++ b/
src/gallium/drivers/radeon/r600_texture.c
@@
-924,7
+924,7
@@
static void *r600_texture_transfer_map(struct pipe_context *ctx,
* the CPU is much happier reading out of cached system memory
* than uncached VRAM.
*/
- if (rtex->surface.level[
level
].mode >= RADEON_SURF_MODE_1D)
+ if (rtex->surface.level[
0
].mode >= RADEON_SURF_MODE_1D)
use_staging_texture = TRUE;
/* Untiled buffers in VRAM, which is slow for CPU reads */