On Mon May 22 13:33:33 2023 +0000, Giovanni Mascellani wrote:
It's true it's a bit intricate (not that I know of any better way to do the same thing), but I don't think we should drop it. I know we already discussed that, but to me whether a feature is used somewhere or not shouldn't be a criterion to decide whether to have that feature or not (it can be a reasonable criterion to decide on what to concentrate development). In theory our shader compiler should be able to compile any shader that is accepted by the native compiler.
I understand that mindset, but I'm really not happy about maintaining complicated code that might never be used. It's the same reason we discourage implementing things in Wine that no application asks for.
Perhaps more saliently, after doing a bit of testing, it seems that native logic here gets stupidly complicated, and this code isn't quite correct as-is. I don't think it's really worth trying to fix the code just for that.