projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
776a9ce
)
turnip: Emit clears of gmem using linear.
author
Eric Anholt
<eric@anholt.net>
Mon, 30 Sep 2019 18:04:38 +0000
(11:04 -0700)
committer
Jonathan Marek
<jonathan@marek.ca>
Tue, 15 Oct 2019 11:56:20 +0000
(07:56 -0400)
This is what we do in freedreno.
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/vulkan/tu_cmd_buffer.c
patch
|
blob
|
history
diff --git
a/src/freedreno/vulkan/tu_cmd_buffer.c
b/src/freedreno/vulkan/tu_cmd_buffer.c
index 863c082912cc3fc5fa87e1e10b6dafdeeed603e4..e1b4589451bdccf38230153dcd68f377f0724992 100644
(file)
--- a/
src/freedreno/vulkan/tu_cmd_buffer.c
+++ b/
src/freedreno/vulkan/tu_cmd_buffer.c
@@
-647,7
+647,7
@@
tu6_emit_blit_clear(struct tu_cmd_buffer *cmd,
const enum a3xx_color_swap swap = WZYX;
tu_cs_emit_pkt4(cs, REG_A6XX_RB_BLIT_DST_INFO, 1);
- tu_cs_emit(cs, A6XX_RB_BLIT_DST_INFO_TILE_MODE(
iview->image->tile_mode
) |
+ tu_cs_emit(cs, A6XX_RB_BLIT_DST_INFO_TILE_MODE(
TILE6_LINEAR
) |
A6XX_RB_BLIT_DST_INFO_SAMPLES(samples) |
A6XX_RB_BLIT_DST_INFO_COLOR_FORMAT(format->rb) |
A6XX_RB_BLIT_DST_INFO_COLOR_SWAP(swap));