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:
parent
091f1da902
commit
1d9d90d9a6
|
@ -120,7 +120,7 @@ make_surface(const struct anv_device *dev,
|
|||
|
||||
isl_tiling_flags_t tiling_flags = anv_info->isl_tiling_flags;
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue