mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 08:00:12 +01:00
Some input varyings might not be written by any of the active stages preceding the stage reading the varying (e.g. gl_Layer should be set to 0 when not written by vertex/geometry shaders). In this case, we can insert a dummy varying attribute returning zero. This is actually what the code intended to do, but 2 things were missing: 1. formats[NONE] is not mapping to the CONSTANT0 format 2. the offset and strides should always be set to 0 when using a CONSTANT0 attribute All of this is needed to have the input attachments working. Indeed, we use the nir_lower_input_attachments() pass which lowers input attachment loads to texel fetches, and the txf operation is passed the layer_id in its 3rd coordinate. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13077> |
||
|---|---|---|
| .. | ||
| amd | ||
| android_stub | ||
| asahi | ||
| broadcom | ||
| compiler | ||
| drm-shim | ||
| egl | ||
| etnaviv | ||
| freedreno | ||
| gallium | ||
| gbm | ||
| getopt | ||
| glx | ||
| gtest | ||
| hgl | ||
| imgui | ||
| intel | ||
| loader | ||
| mapi | ||
| mesa | ||
| microsoft | ||
| nouveau | ||
| panfrost | ||
| tool | ||
| util | ||
| virtio | ||
| vulkan | ||
| meson.build | ||