anv: Drop some VK_IMAGE_TILING_OPTIMAL checks
The DRM format modifiers extension adds a TILING_DRM_FORMAT_MODIFIER which will be used for modifiers so we can no longer use OPTIMAL to indicate tiled inside the driver. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3434>
This commit is contained in:

committed by
Marge Bot

parent
0099f85232
commit
44f5a92c0b
@@ -544,7 +544,7 @@ anv_get_image_format_features(const struct gen_device_info *devinfo,
|
||||
return 0;
|
||||
|
||||
struct anv_format_plane base_plane_format = plane_format;
|
||||
if (vk_tiling == VK_IMAGE_TILING_OPTIMAL) {
|
||||
if (vk_tiling != VK_IMAGE_TILING_LINEAR) {
|
||||
base_plane_format = anv_get_format_plane(devinfo, vk_format,
|
||||
VK_IMAGE_ASPECT_COLOR_BIT,
|
||||
VK_IMAGE_TILING_LINEAR);
|
||||
|
@@ -1104,7 +1104,7 @@ anv_layout_to_aux_usage(const struct gen_device_info * const devinfo,
|
||||
return ISL_AUX_USAGE_NONE;
|
||||
|
||||
/* All images that use an auxiliary surface are required to be tiled. */
|
||||
assert(image->tiling == VK_IMAGE_TILING_OPTIMAL);
|
||||
assert(image->planes[plane].surface.isl.tiling != ISL_TILING_LINEAR);
|
||||
|
||||
/* Stencil has no aux */
|
||||
assert(aspect != VK_IMAGE_ASPECT_STENCIL_BIT);
|
||||
@@ -1244,7 +1244,7 @@ anv_layout_to_fast_clear_type(const struct gen_device_info * const devinfo,
|
||||
return ANV_FAST_CLEAR_NONE;
|
||||
|
||||
/* All images that use an auxiliary surface are required to be tiled. */
|
||||
assert(image->tiling == VK_IMAGE_TILING_OPTIMAL);
|
||||
assert(image->planes[plane].surface.isl.tiling != ISL_TILING_LINEAR);
|
||||
|
||||
/* Stencil has no aux */
|
||||
assert(aspect != VK_IMAGE_ASPECT_STENCIL_BIT);
|
||||
|
@@ -1031,7 +1031,7 @@ transition_color_buffer(struct anv_cmd_buffer *cmd_buffer,
|
||||
if (base_layer >= anv_image_aux_layers(image, aspect, base_level))
|
||||
return;
|
||||
|
||||
assert(image->tiling == VK_IMAGE_TILING_OPTIMAL);
|
||||
assert(image->planes[plane].surface.isl.tiling != ISL_TILING_LINEAR);
|
||||
|
||||
if (initial_layout == VK_IMAGE_LAYOUT_UNDEFINED ||
|
||||
initial_layout == VK_IMAGE_LAYOUT_PREINITIALIZED) {
|
||||
|
Reference in New Issue
Block a user