Bug 64091 - piglit glean/readPixSanity testcase fails on ppc64 with Radeon adapter
Summary: piglit glean/readPixSanity testcase fails on ppc64 with Radeon adapter
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: 9.1
Hardware: PowerPC Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-30 18:42 UTC by Kleber Sacilotto de Souza
Modified: 2019-09-18 19:02 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
glxinfo using the radeon driver (52.94 KB, text/plain)
2013-04-30 18:43 UTC, Kleber Sacilotto de Souza
Details
readPixSanity output using the radeon driver (20.26 KB, text/plain)
2013-04-30 18:43 UTC, Kleber Sacilotto de Souza
Details
glxinfo using software rasterizer (19.08 KB, text/plain)
2013-04-30 18:44 UTC, Kleber Sacilotto de Souza
Details
readPixSanity output using software rasterizer (11.49 KB, text/plain)
2013-04-30 18:44 UTC, Kleber Sacilotto de Souza
Details

Description Kleber Sacilotto de Souza 2013-04-30 18:42:29 UTC
I'm performing the bring-up of a Radeon adapter (AMD FirePro 2270) using Fedora 19 on a ppc64 machine, and running the sanity test profile from piglit the glean/readPixSanity testcase fails. I've also run the test with LIBGL_ALWAYS_SOFTWARE=1 and it fails some of the tests, so it might indicate that the problem is not on the Radeon Mesa driver itself.

I will attach to this bug the output from glxinfo and glean/readPixSanity for both Radeon driver and software rasterizer.

Steps to reproduce:
1. Install piglit
2. Run: # ./piglit-run.py tests/sanity.tests results/sanity.results
Comment 1 Kleber Sacilotto de Souza 2013-04-30 18:43:16 UTC
Created attachment 78661 [details]
glxinfo using the radeon driver
Comment 2 Kleber Sacilotto de Souza 2013-04-30 18:43:44 UTC
Created attachment 78662 [details]
readPixSanity output using the radeon driver
Comment 3 Kleber Sacilotto de Souza 2013-04-30 18:44:13 UTC
Created attachment 78663 [details]
glxinfo using software rasterizer
Comment 4 Kleber Sacilotto de Souza 2013-04-30 18:44:35 UTC
Created attachment 78664 [details]
readPixSanity output using software rasterizer
Comment 5 Jerome Glisse 2013-04-30 19:57:16 UTC
For radeon my guess is that depth/stencil readback needs some fiddling with texture format :

mesa/src/gallium/drivers/r600/r600_blit.c

r600_blit_decompress_depth()

surf_tmpl.format = flushed_depth_texture->resource.b.b.format;

i would look at what format you got there and what try to play with some other format.
Comment 6 Alex Deucher 2013-04-30 20:07:49 UTC
Gallium is big endian safe at the moment.  See these discussion threads for what needs to be done:
http://lists.freedesktop.org/archives/mesa-dev/2013-January/033590.html
http://lists.freedesktop.org/archives/mesa-dev/2013-February/034047.html
Comment 7 Alex Deucher 2013-04-30 20:08:39 UTC
(In reply to comment #6)
> Gallium is big endian safe at the moment.  See these discussion threads for
> what needs to be done:
> http://lists.freedesktop.org/archives/mesa-dev/2013-January/033590.html
> http://lists.freedesktop.org/archives/mesa-dev/2013-February/034047.html

*Gallium is NOT big endian safe at the moment.
Comment 8 Michel Dänzer 2013-05-01 07:15:06 UTC
It's unlikely that both drivers are affected by one and the same problem. Let's start looking at this from the r600g driver first and work our way up the stack as necessary. :)

The r600g driver has been working around the issues pointed out by Alex using GPU byte-swapping facilities, but that obviously isn't working for depth/stencil readback.
Comment 9 Jerome Glisse 2013-05-01 15:07:31 UTC
You can look for R600_BIG_ENDIAN in r600 driver code for place where we program the hw depending on endianess.
Comment 10 GitLab Migration User 2019-09-18 19:02:44 UTC
-- 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/mesa/issues/434.


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.