anv/image: Create a linear image when requested
If a linear image is requested, the only possible result should be a linearly-tiled surface. Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
@@ -120,7 +120,7 @@ make_surface(const struct anv_device *dev,
|
|||||||
|
|
||||||
isl_tiling_flags_t tiling_flags = anv_info->isl_tiling_flags;
|
isl_tiling_flags_t tiling_flags = anv_info->isl_tiling_flags;
|
||||||
if (vk_info->tiling == VK_IMAGE_TILING_LINEAR)
|
if (vk_info->tiling == VK_IMAGE_TILING_LINEAR)
|
||||||
tiling_flags &= ISL_TILING_LINEAR_BIT;
|
tiling_flags = ISL_TILING_LINEAR_BIT;
|
||||||
|
|
||||||
struct anv_surface *anv_surf = get_surface(image, aspect);
|
struct anv_surface *anv_surf = get_surface(image, aspect);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user