News for hackers. Stuff that matters.
Re:The first conformant M1 GPU driver by djmips on Wednesday August 23, 2023 @01:01AM (#37232058)
The atomic trick was very satisfying, especially extrapolating the swizzle instruction from the PowerVR heritage. I don't know but wouldn't be surprised if the Apple engineers are learning from this or at least they would appreciate the sheer cleverness. It reminds me when back in the day, the Sega Genesis video hardware was reverse engineered at Accolade and our engineers used the public Texas Instruments TMS9918 VDP documentation as a starting point to extrapolate the evolved 9918 derived VDP in the Genesis (Mega Drive).
Re:The first conformant M1 GPU driver by saagarjha on Wednesday August 23, 2023 @02:40AM (#37232544)
I’m sure they appreciate the work but Apple has internal documentation on their chips. It’s not like they make a black box and forget how they designed them when it comes to writing software for them.
Re:The first conformant M1 GPU driver by ironlenny on Wednesday August 23, 2023 @02:43AM (#37232563)
Some times an outsider's attempt to reverse engineer your product brings new insights.
Re:The first conformant M1 GPU driver by saagarjha on Wednesday August 23, 2023 @02:44AM (#37232571)
That is true, but one does not simply implement a fully conformant bit shuffle instruction by accident.
Re:The first conformant M1 GPU driver by dev_tty01 on Wednesday August 23, 2023 @10:45AM (#37236832)
Or sometimes an instruction isn't in the compiler because the hardware has some strange corner case failures so they aren't using it. I would be nervous about depending upon an unused instruction.
Re:The first conformant M1 GPU driver by devit on Wednesday August 23, 2023 @10:36AM (#37236651)
The article claims that Apple's compiler doesn't use the instruction, so it seems like the compiler author did indeed forget or never learn about it.
Re:The first conformant M1 GPU driver by kaba0 on Thursday August 24, 2023 @07:45AM (#37247709)
Or maybe it has some limitations they realized and blacklisted the instruction?