intel/isl: Add support for scratch buffers
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 20 Oct 2020 18:23:31 +0000 (13:23 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 25 Jun 2021 00:18:29 +0000 (00:18 +0000)
commit96ee78778b515d5b71038c6ac16ad6f627c5062e
tree7e949c889bcf2d71e047c143d197a297bff62a8d
parent443627fcc0e95ccce36521f4e6bbb48b7b6152a5
intel/isl: Add support for scratch buffers

XeHP adds support for a new surface type for scratch.  It's similar to
SURFTYPE_STRBUF in that it's a 2D array-of-struct format but the one
key difference is that the U coordinate is computed automatically based
on the thread ID and only the V coordinate is provided in the dataport
message.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11582>
src/intel/isl/isl.h
src/intel/isl/isl_surface_state.c