https://bugs.freedesktop.org/show_bug.cgi?id=89148 --- Comment #4 from Stefan Dösinger --- Created attachment 113562 --> https://bugs.freedesktop.org/attachment.cgi?id=113562&action=edit Test program This program reproduces the result. As a 32 bit binary it generates the same type 1 command that is rejected. As a 64 bit program it crashes with the following backtrace: (gdb) bt #0 0x00007ffff75c8c90 in ?? () from /lib64/libc.so.6 #1 0x00007ffff2e0bcd3 in memcpy (__len=32, __src=, __dest=) at /usr/include/bits/string3.h:51 #2 r300_emit_blend_state (r300=, size=8, state=) at r300_emit.c:57 #3 0x00007ffff2e0f150 in r300_emit_dirty_state (r300=r300@entry=0x649950) at r300_emit.c:1450 #4 0x00007ffff2e12018 in r300_emit_states (instance_id=-1, index_bias=0, buffer_offset=0, index_buffer=0x0, flags=, r300=0x649950) at r300_render.c:259 #5 r300_prepare_for_rendering (r300=r300@entry=0x649950, flags=, flags@entry=PREP_EMIT_STATES, index_buffer=index_buffer@entry=0x0, cs_dwords=cs_dwords@entry=21, buffer_offset=buffer_offset@entry=0, index_bias=index_bias@entry=0, instance_id=instance_id@entry=-1) at r300_render.c:311 #6 0x00007ffff2e13258 in r300_blitter_draw_rectangle (blitter=, x1=0, y1=0, x2=256, y2=256, depth=0, type=UTIL_BLITTER_ATTRIB_NONE, attrib=0x0) at r300_render.c:1141 #7 0x00007ffff2d7d3df in util_blitter_custom_color (blitter=0x61c7f0, dstsurf=dstsurf@entry=0x79e030, custom_blend=custom_blend@entry=0x0) at util/u_blitter.c:2146 #8 0x00007ffff2e06b91 in r300_simple_msaa_resolve (pipe=pipe@entry=0x649950, dst=dst@entry=0x79dcd0, dst_level=dst_level@entry=0, dst_layer=dst_layer@entry=0, src=, format=PIPE_FORMAT_B8G8R8A8_SRGB) at r300_blit.c:737 #9 0x00007ffff2e08396 in r300_msaa_resolve (info=0x7ffffffbdc70, pipe=0x649950) at r300_blit.c:783 #10 r300_blit (pipe=0x649950, blit=) at r300_blit.c:809 #11 0x00007ffff2c2ad97 in st_BlitFramebuffer (ctx=, readFB=0x796f30, drawFB=0x79d6b0, srcX0=, srcY0=, srcX1=, srcY1=256, dstX0=0, dstY0=0, dstX1=256, dstY1=256, mask=16384, filter=9728) at state_tracker/st_cb_blit.c:263 #12 0x00007ffff2af2ff2 in _mesa_BlitFramebuffer (srcX0=, srcY0=0, srcX1=, srcY1=256, dstX0=, dstY0=, dstX1=256, dstY1=256, mask=16384, filter=9728) at main/blit.c:509 #13 0x000000000040132f in init () #14 0x000000000040148a in main () Further testing shows that the GL_SRGB8_ALPHA8 internal format of the destination texture is the problem. Replacing this with GL_RGBA8 makes the test work fine. Note that when GL_EXT_sRGB_decode is available Wine always creates sRGB textures and sets GL_TEXTURE_SRGB_DECODE_EXT to GL_SKIP_DECODE_EXT to get d3d-style sRGB read correction toggling. -- You are receiving this mail because: You are the assignee for the bug.