dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 89148] r300g: Kernel rejected CS in Wine d3d multisample test
Date: Tue, 17 Feb 2015 11:43:12 +0000	[thread overview]
Message-ID: <bug-89148-502-flQ1adunxa@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-89148-502@http.bugs.freedesktop.org/>


[-- Attachment #1.1: Type: text/plain, Size: 3074 bytes --]

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

--- Comment #4 from Stefan Dösinger <stefandoesinger@gmx.at> ---
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=<optimized out>,
__dest=<optimized out>) at /usr/include/bits/string3.h:51
#2  r300_emit_blend_state (r300=<optimized out>, size=8, state=<optimized out>)
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=<optimized out>, r300=0x649950) at
r300_render.c:259
#5  r300_prepare_for_rendering (r300=r300@entry=0x649950, flags=<optimized
out>, 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=<optimized out>,
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=<optimized out>,
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=<optimized out>) at r300_blit.c:809
#11 0x00007ffff2c2ad97 in st_BlitFramebuffer (ctx=<optimized out>,
readFB=0x796f30, drawFB=0x79d6b0, srcX0=<optimized out>, srcY0=<optimized out>,
srcX1=<optimized out>, 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=<optimized out>,
srcY0=0, srcX1=<optimized out>, srcY1=256, dstX0=<optimized out>,
dstY0=<optimized out>, 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.

[-- Attachment #1.2: Type: text/html, Size: 4150 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2015-02-17 11:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-14 16:26 [Bug 89148] r300g: Kernel rejected CS in Wine d3d multisample test bugzilla-daemon
2015-02-14 16:32 ` bugzilla-daemon
2015-02-16 19:18 ` bugzilla-daemon
2015-02-17  9:36 ` bugzilla-daemon
2015-02-17 11:43 ` bugzilla-daemon [this message]
2015-02-18 15:19 ` bugzilla-daemon
2015-02-21 11:06 ` bugzilla-daemon
2015-02-21 12:01 ` bugzilla-daemon
2015-02-21 12:10 ` bugzilla-daemon
2015-02-24  8:59 ` bugzilla-daemon
2015-02-24 22:23 ` bugzilla-daemon
2015-02-26  9:48 ` bugzilla-daemon
2015-02-26 11:17 ` bugzilla-daemon
2015-02-26 12:00 ` bugzilla-daemon
2015-03-10 10:36 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-89148-502-flQ1adunxa@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox