Dave Airlie
a9c1c75e9c
crocus: convert a bunch of is_haswell into verx10 checks.
...
This just make things easier when gen8 support is added
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11507 >
2021-06-22 18:56:20 +00:00
Jason Ekstrand
7b8199e4a2
crocus: Drop extra_aux support
...
This exists for combined MCS+CCS or HiZ+CCS which was introduced on
Tigerlake. Crocus will never support hardware that has these features
so there's no point carrying the dead copied+pasted code from iris.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11483 >
2021-06-19 14:57:25 +00:00
Dave Airlie
cebbdf5de3
crocus: fix scanout tiling so glamor/modesetting can work.
...
This fixes the scanout tiling to be like iris, with this X/glamor
can run.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11354 >
2021-06-15 10:58:09 +10:00
Dave Airlie
bc9af971d2
crocus: hook up resource creation from memory object
...
Port 772dc50d16
from iris
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11352 >
2021-06-15 00:02:06 +00:00
Dave Airlie
8bf662df52
crocus: hook up memory object creation from handle
...
Port cdb5a72764
from iris
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11352 >
2021-06-15 00:02:06 +00:00
Dave Airlie
9be4eb1688
crocus: Drop buffer support in resource_from_handle
...
Port 9d503b36ca
from iris
The callers don't seem to pass targets of PIPE_BUFFER. Stop nesting an
if-else block by dropping support for this target.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11352 >
2021-06-15 00:02:06 +00:00
Dave Airlie
32728dc66e
crocus: introduce main resource configuration helper.
...
Along the lines of what iris does.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11352 >
2021-06-15 00:02:06 +00:00
Dave Airlie
1e6e87a3c9
crocus: Make iris_bo_import_dmabuf take a modifier
...
Port 493298528a
from iris
Replace the tiling parameter with a modifier parameter. I find it more
straightforward to have this function figure out the tiling from the
modifier than to have its caller do it.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11352 >
2021-06-15 00:02:06 +00:00
Dave Airlie
4cd0f8535c
crocus: Don't call SET_TILING for dmabuf imports
...
This is a port of c111e9099c
from iris to
crocus.
Calling SET_TILING on a DMA buffer with the gen12 CCS modifier can fail
unnecessarily. The main surface in the BO is Y-tiled, but the CCS portion is
linear and can have a stride that's not a multiple of 128B. Because SET_TILING
is called on the CCS plane with I915_TILING_Y, the ioctl will sometimes reject
the stride.
SET_TILING was originally used in b6d45e7f74
to
fix an assertion failure in iris_resource_from_handle. Assigning the BO's
tiling_mode field is sufficient to avoid the failure.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11352 >
2021-06-15 00:02:06 +00:00
Dave Airlie
f3630548f1
crocus: initial gallium driver for Intel gfx 4-7
...
This is a gallium driver for the Intel gfx 4-7 GPUs.
It was initially cloned from the iris driver by Ilia Mirkin,
then I ported over large reams of code from i965 until it worked.
Acked-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11146 >
2021-06-14 06:34:05 +10:00