v3dv: we can sample from 1D array too
Fixes: 95f881ad
('v3dv: add support for sampling simple 2D linear textures')
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25286>
This commit is contained in:

committed by
Marge Bot

parent
62f931204b
commit
747c7042df
@@ -3447,8 +3447,10 @@ handle_sample_from_linear_image(struct v3dv_cmd_buffer *cmd_buffer,
|
|||||||
|
|
||||||
struct v3dv_image *image = (struct v3dv_image *) desc->image_view->vk.image;
|
struct v3dv_image *image = (struct v3dv_image *) desc->image_view->vk.image;
|
||||||
struct v3dv_image_view *view = (struct v3dv_image_view *) desc->image_view;
|
struct v3dv_image_view *view = (struct v3dv_image_view *) desc->image_view;
|
||||||
if (image->tiled || view->vk.view_type == VK_IMAGE_VIEW_TYPE_1D)
|
if (image->tiled || view->vk.view_type == VK_IMAGE_VIEW_TYPE_1D ||
|
||||||
|
view->vk.view_type == VK_IMAGE_VIEW_TYPE_1D_ARRAY) {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/* FIXME: we can probably handle most of these restrictions too with
|
/* FIXME: we can probably handle most of these restrictions too with
|
||||||
* a bit of extra effort.
|
* a bit of extra effort.
|
||||||
|
Reference in New Issue
Block a user