[Mesa-dev] [PATCH 6/6] anv/blit2d: Use the tiling enum for simplicity
Nanley Chery
nanleychery at gmail.com
Tue Mar 8 21:00:34 UTC 2016
From: Nanley Chery <nanley.g.chery at intel.com>
Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
---
src/intel/vulkan/anv_meta_blit2d.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/intel/vulkan/anv_meta_blit2d.c b/src/intel/vulkan/anv_meta_blit2d.c
index d49b470..6f07342 100644
--- a/src/intel/vulkan/anv_meta_blit2d.c
+++ b/src/intel/vulkan/anv_meta_blit2d.c
@@ -110,8 +110,7 @@ anv_meta_blit2d(struct anv_cmd_buffer *cmd_buffer,
struct isl_tile_info tile_info;
anv_image_info.isl_tiling_flags = 1 << src->tiling;
- image_info.tiling = anv_image_info.isl_tiling_flags ==
- ISL_TILING_LINEAR_BIT ?
+ image_info.tiling = src->tiling == ISL_TILING_LINEAR ?
VK_IMAGE_TILING_LINEAR : VK_IMAGE_TILING_OPTIMAL;
image_info.usage = src_usage;
image_info.format = src_format,
@@ -125,8 +124,7 @@ anv_meta_blit2d(struct anv_cmd_buffer *cmd_buffer,
&cmd_buffer->pool->alloc, &src_image);
anv_image_info.isl_tiling_flags = 1 << dst->tiling;
- image_info.tiling = anv_image_info.isl_tiling_flags ==
- ISL_TILING_LINEAR_BIT ?
+ image_info.tiling = dst->tiling == ISL_TILING_LINEAR ?
VK_IMAGE_TILING_LINEAR : VK_IMAGE_TILING_OPTIMAL;
image_info.usage = dst_usage;
image_info.format = dst_format,
--
2.7.2
More information about the mesa-dev
mailing list