nouveau/codegen: Use a NULL format for PIPE_FORMAT_NONE for images
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Wed, 3 May 2023 23:10:41 +0000 (18:10 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Aug 2023 18:58:03 +0000 (18:58 +0000)
commit2200d3c2e7d7af2b42f4d6fd2128c0d3e20b476f
tree6c9822d791eb9df2d5da3fda1aa34e886683e554
parentf4536232557df26c63ad9feed2f0b5f137eb9eaf
nouveau/codegen: Use a NULL format for PIPE_FORMAT_NONE for images

Get rid of our own FMT_NONE and just use a NULL format in that case.
We're already checking su->tex.format != NULL in a bunch of cases but
none of those NULL checks are doing anything right now execpt detecting
when its an actual texture op and not an image op.  We'd like them to
start also applying for image load/store with an unspecified format.

Reviewed-by: M Henning <drawoc@darkrefraction.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24327>
src/nouveau/codegen/nv50_ir.cpp
src/nouveau/codegen/nv50_ir.h