st/pbo: add the image format in the download FS
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 13 Oct 2021 10:56:15 +0000 (12:56 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Dec 2021 15:32:36 +0000 (15:32 +0000)
commitfd47c939f447657387f051c50837997598240eb8
tree58ef9bdfe18f5bf83f9a77cec86cdab6117a7591
parent38c953e287789d9baba0fa04e7383d183dadfdff
st/pbo: add the image format in the download FS

In the V3D driver there is a NIR lowering step for `image_store`
intrinsic, where the image store format is required for doing the proper
lowering.

Thus, let's define it for the download FS instead of
keeping it as NONE.

v2 (Illia)
 - Use format only for drivers not supporting format-less writing.

v4 (Illia):
 - Use PIPE_CAP_IMAGE_STORE_FORMATTED to reduce combinations.

v5 (Ilia):
 - Use indirect array for download FS in not formatless-store support
   drivers.

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13409>
src/broadcom/compiler/v3d_nir_lower_image_load_store.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_pbo.c