mesa/src/intel
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
..
blorp intel/blorp: Fix Gfx7 stencil surface state valign 2021-08-25 22:39:30 +00:00
common meson/intel: Don't build genxml tests on Android 2021-08-11 23:57:52 +00:00
compiler intel/compiler: Basic support for DP4A instruction 2021-08-24 19:58:57 +00:00
dev intel: Parse INTEL_NO_HW for devinfo construction 2021-08-24 00:12:47 +00:00
ds pps: fix a missing include in Intel pps driver 2021-05-21 22:03:16 +00:00
genxml intel: Support Tile4/64 in surface states 2021-08-25 22:39:30 +00:00
isl intel/isl: Fix halign/valign of uncompressed views 2021-08-25 22:39:30 +00:00
nullhw-layer intel/nullhw: fix build 2021-03-26 20:12:40 +00:00
perf intel/perf: Use a char array for OA perf query data 2021-08-11 23:57:52 +00:00
tools intel/error-decode: printout INSTDONE_GEOM register for Gfx12.5 2021-08-17 08:05:45 +00:00
vulkan intel: Parse INTEL_NO_HW for devinfo construction 2021-08-24 00:12:47 +00:00
Makefile.perf.am intel: Rename GEN_PERF prefix to INTEL_PERF in build files 2021-04-20 20:06:34 +00:00
meson.build pps: Intel pps driver 2021-05-18 14:28:48 +00:00