[Mesa-dev] [PATCH] nir/lower_tex: Use nir_format_srgb_to_linear

Jason Ekstrand jason at jlekstrand.net
Fri Jul 13 17:12:46 UTC 2018


On Fri, Jul 13, 2018 at 10:08 AM Jason Ekstrand <jason at jlekstrand.net>
wrote:

> On Fri, Jul 13, 2018 at 9:41 AM Eric Anholt <eric at anholt.net> wrote:
>
>> Jason Ekstrand <jason at jlekstrand.net> writes:
>>
>> > Eric, I can't test this patch because it only affects your driver.
>>
>> I tried a piglit run last night, and all the sRGB lowering looks like it
>> crashes now due to fdivs in the NIR.
>>
>
> Do you not run nir_opt_algebraic after texture lowering?
>

Upon further inspection you do, you just don't set lower_fdiv in
nir_compiler_options.

--Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180713/41a80b8e/attachment.html>


More information about the mesa-dev mailing list