[Bug 89148] r300g: Kernel rejected CS in Wine d3d multisample test

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 26 01:48:56 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89148

--- Comment #11 from Stefan Dösinger <stefandoesinger at gmx.at> ---
Attachment 113802 fixes the invalid CS / crash and my test program now reads a
color. However, sRGB color correction seems to be applied at some stage. Note
that the test program is not using GL_ARB_framebuffer_sRGB (which isn't
supported on r500 anyway), and that GL_TEXTURE_SRGB_DECODE_EXT is set to
GL_SKIP_DECODE_EXT.

It seems that the correction is applied during blitting. If I clear the 2D
texture directly the expected result (0x0000ff80) is returned. If I use the
renderbuffer and blit I get 0x0000ff37.

(Wine expects that glBlitFramebuffer never applies sRGB correction when
blitting from an sRGB texture, but this codepath is only used if
GL_EXT_sRGB_decode is not supported. In this case we load two copies of the
texture, one sRGB and one RGB, and use glBlitFramebuffer to blit between them
if the application toggles sRGB on and off.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150226/b5457517/attachment.html>


More information about the dri-devel mailing list