diff options
author | Jonathan Marek <jonathan@marek.ca> | 2019-11-18 16:46:39 -0500 |
---|---|---|
committer | Jonathan Marek <jonathan@marek.ca> | 2019-11-21 22:21:57 +0000 |
commit | 773d640efa2665fc50f86cbb7d1e6b9402ba44ad (patch) | |
tree | 1b345b4bffbbff002dcb226b930cd4f8a0336430 /src/freedreno/vulkan/tu_meta_copy.c | |
parent | 91fd83d1420c8e9f94b08356ab48f9ab15329645 (diff) |
turnip: implement UBWC
This enables UBWC for everything except 3D textures.
It breaks many image_to_image copies but those aren't important and it can
be worked around later (image_to_image copy needs to be done in two steps,
decode from the source format and then encode to the destination format).
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/freedreno/vulkan/tu_meta_copy.c')
-rw-r--r-- | src/freedreno/vulkan/tu_meta_copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_meta_copy.c b/src/freedreno/vulkan/tu_meta_copy.c index dedfab2559b..e51b31275f0 100644 --- a/src/freedreno/vulkan/tu_meta_copy.c +++ b/src/freedreno/vulkan/tu_meta_copy.c @@ -200,7 +200,7 @@ tu_blit_buffer(struct tu_buffer *buffer, const VkBufferImageCopy *info) { if (info->imageSubresource.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT) - format = VK_FORMAT_R8_UINT; + format = VK_FORMAT_R8_UNORM; unsigned pitch = (info->bufferRowLength ?: info->imageExtent.width) * vk_format_get_blocksize(format); |