Summary: | corrupted output in mesa-demo/fp-tri using r600g | ||
---|---|---|---|
Product: | Mesa | Reporter: | Stefano Teso <stefano.teso> |
Component: | Demos | Assignee: | mesa-dev |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
screenshot showing the artifact
screenshot with r600g screenshot with llvmpipe |
Description
Stefano Teso
2011-11-29 03:09:58 UTC
Created attachment 53948 [details]
screenshot showing the artifact
> The bug is also present in the libGL 7.11.2 shipped by debian, so I don't think
> it's a regression or a bug in my config.
It looks like that inst->Dst[0].Register.WriteMask == 3 in tgsi_scs (), so the ZW components of the dest register are never written. Perhaps this could explain the artifact. Not that I'm a GL expert or anything ;-)
(In reply to comment #2) > > The bug is also present in the libGL 7.11.2 shipped by debian, so I don't think > > it's a regression or a bug in my config. > > It looks like that inst->Dst[0].Register.WriteMask == 3 in tgsi_scs (), so the > ZW components of the dest register are never written. Perhaps this could > explain the artifact. Not that I'm a GL expert or anything ;-) Forcing the mask to 15 fixes the problem. Of course this is no solution. Likely the fragment color is not cleared properly before calling SCS? Yeah, looks like the problem is basically that the pixel shader never writes any explicit values to the ZW components of the output register. However, I'm not sure offhand if it's the responsibility of the Gallium driver / state tracker / shader compiler / app to ensure this. Before I go wading through the various specifications, I hope someone does know offhand. :) Also seeing it on an RS880, dropping evergreen from the title. The shader is responsible for writing all components of the color. SCS instruction writes XY only (ARB_fragment_program spec), so it's not the driver's fault. Reassigning to demos per comment #5. Created attachment 67099 [details]
screenshot with r600g
I get no artifacts, but the colors are not correct.
tested with mesa 8.0.4 and mesa master 28f4be9
on my rv770
Created attachment 67100 [details]
screenshot with llvmpipe
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/demos/issues/6. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.