DescriptionSeveral fixes for fp 16 rendering:
With the GPU backend, allow F16 render targets to be created (along with
any other renderable format). We were previously just falling back to 8888.
In SampleApp, if the window configuration is F16, don't render directly
to the primary surface (which is actually sRGB 8888). Intead, make an
off-screen F16 surface, then blit it back to the framebuffer when we're done.
In DM, clamp values outside of [0,1]. These were wrapping, producing very
incorrect images. (Many filters can trigger out-of-range values due to
ringing).
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1890923003
Committed: https://skia.googlesource.com/skia/+/6b08652abff788a251db82ca2b5f6b359ffe2590
Patch Set 1 #Patch Set 2 : Support F16 MSAA in SampleApp #
Total comments: 2
Patch Set 3 : Nicer looking clamp #
Messages
Total messages: 14 (7 generated)
|