#asahi-gpu · 2022-08-30 20:43
yuniAll of this is to say -- porting Mesa to t6000 should be easy but won't come for free :)#asahi-gpu · 2022-08-30 20:43
yuni(and what Mesa currently supports)#asahi-gpu · 2022-08-30 20:43
yuniG13 is what's in A14 as well as t8103/t6000.#asahi-gpu · 2022-08-30 20:42
yuniSorry, typo'd pretty hard there: supporting G14 (the GPU in the M2 and the A15)#asahi-gpu · 2022-08-30 20:33
yuniWe'll find out in due time, won't we? :)#asahi-gpu · 2022-08-30 20:32
yuniAdmittedly those are guesses based on gut feelings, I could be wrong!#asahi-gpu · 2022-08-30 20:32
yunithough I would expect supporting g13 (the GPU in the M2 and the A14) will want recompiling#asahi-gpu · 2022-08-30 20:31
yuni(none of the "compile for every architecture" crap)#asahi-gpu · 2022-08-30 20:31
yuniI would expect t8103/t6000 in mesa can be supported with the same build of the same driver#asahi-gpu · 2022-08-30 20:30
yuni(Maybe the tiler needs to be configured slightly differently)#asahi-gpu · 2022-08-30 20:30
yuniThe working theory is that all the API facing stuff and the instruction set are the same, but there are some internal differences#asahi-gpu · 2022-08-30 20:29
yunidougall tested it a while back and found things 'mostly' worked but with visual artefacts#asahi-gpu · 2022-08-30 20:29
yuniphire: It's worth noting that Mesa isn't compatible with t6000 yet, either.#asahi-gpu · 2022-06-19 18:03
yunirelatable#asahi-gpu · 2022-06-19 17:55
yuniAnd every time I think I understand how the twiddling works, the hardware throws another a curveball at me.#asahi-gpu · 2022-06-19 17:54
yuniOf course that depends on the code working ....#asahi-gpu · 2022-06-19 17:54
yuniand not worry about all this nonsense.#asahi-gpu · 2022-06-19 17:54
yuniThe layout code is being moved to src/asahi/layout, so when that's working and merged you'll be able to use for VK#asahi-gpu · 2022-06-19 17:54
yunigood luck!#asahi-gpu · 2022-06-19 17:53
yuniOh my#asahi-gpu · 2022-06-19 17:33
yuniStill breaking a pile of dEQPs.#asahi-gpu · 2022-06-19 17:31
yuniI have a hack that splits out the cases, which fixes the test. But I think I'm missing the bigger picture#asahi-gpu · 2022-06-19 17:26
yuniSeriously.#asahi-gpu · 2022-06-19 17:24
yunibut that's equivalent to the round-up rule!#asahi-gpu · 2022-06-19 17:24
yuniAfter rounding up to a power of a two, we get 64x32, and then the minor axis used directly is 32#asahi-gpu · 2022-06-19 17:24
yuniand then the tile size within that is irrelevant#asahi-gpu · 2022-06-19 17:23
yuniSo for the size calculation, the width/height are both rounded up to powers of two, giving 64x32#asahi-gpu · 2022-06-19 17:23
yuniOh -- but this is a "small" case#asahi-gpu · 2022-06-19 17:22
yuniThe "round up" rule gives a 32x32 tile.#asahi-gpu · 2022-06-19 17:22
yuniThe minor axis is 27 pixels, the "round down" rule gives a 16x16 tile.#asahi-gpu · 2022-06-19 17:21
yuniBut this is "small", so we can't use that one.#asahi-gpu · 2022-06-19 17:21
yuniFor 32-bit, the max tile size is 64x64#asahi-gpu · 2022-06-19 17:21
yunibut *not* with a 16x16 tiling#asahi-gpu · 2022-06-19 17:20
yuni0x2000 = 64 * 32 * 4, so that's consistent with a 32x32 (or 64x32) tiling.#asahi-gpu · 2022-06-19 17:20
yuniThe layout unit test has the first tile as 0x2000 bytes#asahi-gpu · 2022-06-19 17:19
yuniSo that's legitimately a 32x32 tile (or equivalently 64x32).#asahi-gpu · 2022-06-19 17:18
yunix₅ y₄ x₄ y₃ x₃ y₂ x₂ y₁ x₁ y₀ x₀#asahi-gpu · 2022-06-19 17:18
yuniAnd the tiling pattern:#asahi-gpu · 2022-06-19 17:16
yuniI just dumped the correct layout, we're generating that correctly.#asahi-gpu · 2022-06-19 17:13
yuniLevel 0 of 47x27, that's bpp 32, tile size 32x32 Pass (Pass)#asahi-gpu · 2022-06-19 17:13
yuniLevel 0 of 47x27, that's bpp 32, tile size 16x16 Fail (Image comparison failed)#asahi-gpu · 2022-06-19 17:13
yunidEQP-GLES2.functional.texture.specification.teximage2d_align.2d_rgba8888_47_1 presents an interesting problem#asahi-gpu · 2022-06-19 17:13
yuniSo now I'm trying to fix the linear<-->tiling routines given what we've discovered#asahi-gpu · 2022-06-19 15:53
yuni:-D#asahi-gpu · 2022-06-19 15:53
yuni1/3 mesa:asahi / asahi_layout_tests OK 0.01s#asahi-gpu · 2022-06-19 15:35
yuniI guess focus on the task at hand, calculating the layouts.#asahi-gpu · 2022-06-19 15:35
yuniI don't know.#asahi-gpu · 2022-06-19 15:32
yuniI guess 128x64 and 64x64 tiling looks a lot alike.#asahi-gpu · 2022-06-19 15:31
yuniwhich is... the same? what?#asahi-gpu · 2022-06-19 15:31
yuniy₇ y₆ x₇ x₆ y₅ x₅ y₄ x₄ y₃ x₃ y₂ x₂ y₁ x₁ y₀ x₀