mesa/st: NumLayers is only valid for array textures

For 3d textures, NumLayers is set to 1, which is not what we want. This
fixes the newly added gl-layer-render-storage test (which constructs
immutable 3d textures). Fixes regression introduced in d82bd7eb060.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84145
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Acked-by: Chris Forbes <chrisf@ijw.co.nz>
nv50/ir: avoid deleting pseudo instructions too early

What happens is that a SPLIT operation is part of the spill node, and as
a pseudo op, the instruction gets erased after processing its first def.
However the later defs still need to refer to it, so instead delay
deleting until after that whole RA node is done processing.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79462
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.2 10.3" <mesa-stable@lists.freedesktop.org>
nouveau: fix glCompressedTexImage

mesa_texstore expects pixel data, not compressed data. For compressed
textures, we want to just copy the bits in without any conversion.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Francisco Jerez <currojerez@riseup.net>
gm107/ir: fix manual TXD for array targets

This parallels the fixes in commit afea9bae.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.3" <mesa-stable@lists.freedesktop.org>
add video support to rbug
freedreno/ir3: add IDIV/UDIV support

Logic shamelessly copied from nv50 lowering pass.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
gallium: make set_shader_resources work per stage rather than globally

This isn't used anywhere, so also disable the two existing
implementations of this function in ilo and nvc0.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
tgsi: add ureg support for resource decls

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
mesa/st: add atomic buffer support

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
nvc0: allow binding resources

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
nvc0: bla
Revert "freedreno: add DRM_CONF_SHARE_FD"

This reverts commit 18291ee17a36ea700108b85d679444efa262a312.
freedreno/ir3: add TXF support

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
gm107/ir: fix texture argument order

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.3" <mesa-stable@lists.freedesktop.org>