mesa/src
Nanley Chery 2e464e69b9 intel/isl: Fix halign/valign of uncompressed views
We're going to start asserting for valid halign/valign values during
surface state emission. Pre-SKL, isl_surf_get_uncompressed_surf creates
uncompressed surfaces with invalid halign/valign values - 1x1. Fix this
by replacing the call to isl_surf_get_image_surf with isl_surf_init,
passing in the uncompressed format up-front.

As we're no longer using isl_surf_get_image_surf, we also need to get
the x and y offset of the image ourselves. Instead of getting a
sample-based offset, then converting to elements later on, we use
isl_surf_get_image_offset_B_tile_el to get the offset in elements
up-front.

With the above two changes, the generic code after the else-block is no
longer needed for the single-layer-view code path. We move it and
specialize it to the if-block (which is executed SKL+ and handles
multi-layer views).

Cc: mesa-stable
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12132>
2021-08-25 22:39:30 +00:00
..
amd radv: allow storage images with VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 on GFX10.3+ 2021-08-25 16:27:46 +00:00
android_stub egl/android: refactor to use the legit vndk/window.h header 2021-06-09 21:07:54 +00:00
asahi nir: add indirect loop unrolling to compiler options 2021-08-03 10:54:50 +00:00
broadcom broadcom/compiler: Fix qpu.flags.muf typo. 2021-08-24 08:30:59 +00:00
compiler nir: prevent peephole from generating invalid NIR 2021-08-25 11:38:21 +00:00
drm-shim drm-shim: Support kernels with >4k pages 2021-08-13 23:33:52 +00:00
egl python: explicitly require python3 2021-08-14 21:44:31 +00:00
etnaviv android: Drop the Android.mk build system 2021-07-08 14:44:02 -05:00
freedreno freedreno/a6xx: Fix a6xx gen4 compute shaders 2021-08-25 15:24:19 +00:00
gallium intel/isl: Add msaa_layout param to isl_tiling_get_info 2021-08-25 22:39:30 +00:00
gbm gbm: add GBM_FORMAT_R16 2021-08-06 13:38:00 +00:00
getopt
glx glx: Simplify context API profile computation 2021-08-18 21:11:02 +00:00
gtest
hgl
imgui
intel intel/isl: Fix halign/valign of uncompressed views 2021-08-25 22:39:30 +00:00
loader driconfig: Add support for device specific config 2021-08-02 16:37:24 -07:00
mapi glthread: implement glGetUniformLocation without syncing 2021-08-24 15:24:07 +00:00
mesa intel/isl: Add msaa_layout param to isl_tiling_get_info 2021-08-25 22:39:30 +00:00
microsoft microsoft/compiler: Miscellaneous fixes from running clang-format 2021-08-25 20:19:05 +00:00
nouveau
panfrost pan/bi: Fix format specifiers in disassembler 2021-08-25 20:03:08 +00:00
tool pps: Panfrost pps driver 2021-07-13 11:03:55 +00:00
util gallium: use a packed enum to make pipe_prim_mode 1-byte large with __GNUC__ 2021-08-24 10:43:44 -04:00
virtio venus: use uint32_t in vn_ring_submit 2021-08-24 08:56:16 -07:00
vulkan vulkan/wsi/sw: wait for image fence before submitting to queue 2021-08-24 03:30:17 +10:00
meson.build meson: Build panfrost with tools=panfrost 2021-07-22 17:55:49 +00:00