Alyssa Rosenzweig
|
a3e0b3b912
|
asahi: Add integers to agx_vertex_formats
Handles all the easy cases.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12053>
|
2021-07-24 18:00:07 -04:00 |
|
Alyssa Rosenzweig
|
1671022bf2
|
asahi: Identify texture dimension field
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12053>
|
2021-07-24 13:56:04 -04:00 |
|
Alyssa Rosenzweig
|
23f5ad668f
|
asahi: Fix sampler filtering flag
Typo in the XML. Fixes broken filtering. Still chasing an off-by-one.
Fixes: cad54e2721 ("asahi: Add command buffer XML definitions")
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12053>
|
2021-07-24 13:56:04 -04:00 |
|
Alyssa Rosenzweig
|
f376a90d21
|
asahi: Identify texture address field
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12053>
|
2021-07-24 13:56:04 -04:00 |
|
Alyssa Rosenzweig
|
3d75cff7d7
|
asahi: Identify triangle/lines vs point varyings
Seems to allow skipping over point coords?
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11818>
|
2021-07-11 22:32:41 +00:00 |
|
Alyssa Rosenzweig
|
e2176490d6
|
asahi: Unpack varying descriptors (1x)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11818>
|
2021-07-11 22:32:41 +00:00 |
|
Alyssa Rosenzweig
|
05dc72f863
|
asahi/decode: Print some IOGPU stuff
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
|
2021-07-11 14:49:00 -04:00 |
|
Alyssa Rosenzweig
|
da85e84206
|
asahi/decode: Print clear/store pipelines
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
|
2021-07-11 14:48:59 -04:00 |
|
Alyssa Rosenzweig
|
2f032283f8
|
asahi: Allocate global IDs
Use the same UABI as Metal. One less hack, trying to rule out possible
differences to Metal...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
|
2021-07-11 14:48:59 -04:00 |
|
Alyssa Rosenzweig
|
314324f320
|
asahi/decode: Fix decoding of draw calls
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
|
2021-07-11 14:48:42 -04:00 |
|
Alyssa Rosenzweig
|
ed4b3a5d17
|
asahi/decode: Handle CULL packets
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
|
2021-07-10 12:34:40 -04:00 |
|
Alyssa Rosenzweig
|
9854079d59
|
asahi/decode: Fix up high word
Not sure what's happening here, there's some magic for sure.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
|
2021-07-10 12:34:40 -04:00 |
|
Alyssa Rosenzweig
|
d5580ee805
|
asahi: Identify more unknown fields in the memmap
From validating the memory map of a Metal sample and seeing what goes wrong.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
|
2021-07-10 12:05:34 -04:00 |
|
Alyssa Rosenzweig
|
a9b8731fa1
|
asahi/decode: Check fewer zeroes after a command buffer
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
|
2021-07-10 11:23:50 -04:00 |
|
Alyssa Rosenzweig
|
0b35a8f81a
|
asahi: Make track_free safer
Ensure that we don't free the same BO multiple times, which can lead to later
segfaults in decode.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
|
2021-07-10 11:16:56 -04:00 |
|
Alyssa Rosenzweig
|
9b6ca87672
|
asahi/decode: Only dump mapped allocations
This matches the hardware's view of memory and helps catch spurious reads. (One
symptom of messing this up -- besides broken rendering -- is a kernel warning
about a "bogus texture handle 0".)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
|
2021-07-10 11:04:45 -04:00 |
|
Alyssa Rosenzweig
|
ea7892a74c
|
asahi: Remove unused bo_access property
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
|
2021-07-10 11:01:25 -04:00 |
|
Alyssa Rosenzweig
|
01174fcec8
|
asahi: Use XML for interpolation packet
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11730>
|
2021-07-06 13:44:50 +00:00 |
|
Alyssa Rosenzweig
|
4c99510d3b
|
asahi: Identify attachment length field
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11730>
|
2021-07-06 13:44:50 +00:00 |
|
Alyssa Rosenzweig
|
b8bc5ed297
|
asahi: Use GenXML for main bind fragment
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11730>
|
2021-07-06 13:44:50 +00:00 |
|
Alyssa Rosenzweig
|
19bb9d278f
|
asahi: Extend IOGPU header to contain encoder
Let's squash together all the resulting zeroes. Trying to discern some structure out of this.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11730>
|
2021-07-06 13:44:50 +00:00 |
|
Alyssa Rosenzweig
|
c1d8ed1bc2
|
asahi: Move IOGPU header to XML
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11730>
|
2021-07-06 13:44:50 +00:00 |
|
Alyssa Rosenzweig
|
0b9e8181da
|
asahi: Identify "command buffer" size field in map
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11730>
|
2021-07-06 13:44:50 +00:00 |
|
Alyssa Rosenzweig
|
8e3f81ccc4
|
asahi: Add XML for the attachment structure
We need a lot more control over these magic structures to get Z/S attachments working correctly. This is an early start.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11730>
|
2021-07-06 13:44:50 +00:00 |
|
Alyssa Rosenzweig
|
18a34dc47e
|
asahi: Implement the stencil test
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11730>
|
2021-07-06 13:44:50 +00:00 |
|
Alyssa Rosenzweig
|
dc968a9bec
|
asahi: Prepack rasterizer faces
A bit more efficient and will allow easy implementation of the stencil test.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11730>
|
2021-07-06 13:44:50 +00:00 |
|
Alyssa Rosenzweig
|
bee077f5e2
|
asahi: Identify vertex texture/sampler counts
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11718>
|
2021-07-05 20:56:04 +00:00 |
|
Alyssa Rosenzweig
|
8ea262f508
|
asahi: Add ASAHI_MESA_DEBUG=no16 option
A lot of dEQP failures go away with 32-bit forced...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11718>
|
2021-07-05 20:56:04 +00:00 |
|
Alyssa Rosenzweig
|
5049907ae1
|
asahi: Implement colour buffer reloads
Gets glmark2 -bdesktop working.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11718>
|
2021-07-05 20:56:04 +00:00 |
|
Alyssa Rosenzweig
|
0e0448d8df
|
asahi: Add internal (renderable) formats to the table
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11718>
|
2021-07-05 20:56:04 +00:00 |
|
Alyssa Rosenzweig
|
2ad59fc9ec
|
asahi: Handle Z16_UNORM textures
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11718>
|
2021-07-05 20:56:04 +00:00 |
|
Alyssa Rosenzweig
|
eabcf9f31e
|
asahi: Identify varying descriptor fields
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11718>
|
2021-07-05 20:56:03 +00:00 |
|
Vinson Lee
|
6fe82e6c1e
|
asahi: Fix macOS macro.
Fixes: 26b19bda30 ("asahi: Add device abstraction")
Fixes: 55c0956fd0 ("asahi: Add (clean room) IOKit uABI header")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11569>
|
2021-06-24 13:49:40 +00:00 |
|
Alyssa Rosenzweig
|
6899f002fa
|
asahi: Add mipmapping state to the XML
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
bf42d17a16
|
asahi: Flesh out the formats table
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
1b24a3e9e9
|
asahi: Add "hacks for dEQP" flag
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
e2e1d8160f
|
asahi: Add ETC2 formats to table
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
f690d1f7ab
|
asahi: Use pixel table in is_format_supported
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
8b1e273cb5
|
asahi: Scaffold format table
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
6bb7172622
|
asahi: Hide pixel formats behind an opaque type
Convenient for mapping a format table.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
022e482eaa
|
asahi: Add format enums
Split it up into the underlying parts. Now we can decode every format
accessible in Metal.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
eb5983b48e
|
asahi: Print unknown enum values
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
bfd5e52f16
|
asahi: Note that "render target" lacks an sRGB bit
sRGB is handled through other mechanisms.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
118682dd83
|
asahi: Identify line stride in texture/RT XML
The off-by-four is concerning.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
9c0ef01c68
|
asahi: Add layout enum to XML
Used for textures and render targets. There are more values here, probably for
other tiling schemes and compression.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
5c97d1c837
|
asahi: Implement wide lines
Identify line width field and route through the Gallium line width.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
|
2021-06-01 01:31:02 +00:00 |
|
Alyssa Rosenzweig
|
6fbc1cb52a
|
asahi: Update viewport descriptor depth fields
Acts like a translate/scale pair more generally, not specific to near/far
planes.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11084>
|
2021-05-30 23:32:02 +00:00 |
|
Alyssa Rosenzweig
|
9392e2b275
|
asahi: Add unknown bits seen with the GL driver
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11084>
|
2021-05-30 23:32:02 +00:00 |
|
Alyssa Rosenzweig
|
f99f7e70d7
|
asahi: Add scissor enable bit
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11084>
|
2021-05-30 23:32:01 +00:00 |
|
Alyssa Rosenzweig
|
d7cbfd4f6c
|
asahi: Add "set scissor" command
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11084>
|
2021-05-30 23:32:01 +00:00 |
|