From: Eric Anholt Date: Mon, 30 Sep 2019 18:04:38 +0000 (-0700) Subject: turnip: Emit clears of gmem using linear. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a5f3594eec322760180d644555671b11b5dd66c;p=mesa.git turnip: Emit clears of gmem using linear. This is what we do in freedreno. Reviewed-by: Kristian H. Kristensen --- diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index 863c082912c..e1b4589451b 100644 --- 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));