anv/image: Enable specifying a surface's minimum pitch
This is required to create multiple, horizontally adjacent, max-width
images from one blit2d surface. This is also required for more accurate
width specification of surfaces within a larger surface (which is seen
as the smaller surface's enclosing region).
Note that anv_image_create_info::stride has been unused since commit,
b369389640
.
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -138,7 +138,7 @@ make_surface(const struct anv_device *dev,
|
||||
.array_len = vk_info->arrayLayers,
|
||||
.samples = vk_info->samples,
|
||||
.min_alignment = 0,
|
||||
.min_pitch = 0,
|
||||
.min_pitch = anv_info->stride,
|
||||
.usage = choose_isl_surf_usage(image->usage, aspect),
|
||||
.tiling_flags = tiling_flags);
|
||||
|
||||
|
Reference in New Issue
Block a user