| Summary: | [KMS] mesa demo cubemap broken for rv280 | ||
|---|---|---|---|
| Product: | Mesa | Reporter: | Andrew Randrianasulu <randrik> |
| Component: | Drivers/DRI/R100 | Assignee: | Default DRI bug account <dri-devel> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | git | ||
| Hardware: | x86 (IA32) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
| Attachments: |
glxinfo log
glxinfo -l Screenshot mmiotrace log |
||
|
Description
Andrew Randrianasulu
2009-06-18 05:17:07 UTC
Created attachment 26919 [details]
glxinfo -l
Strange, GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 4096 (on rv280?)
(In reply to comment #1) > Strange, GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 4096 (on rv280?) Not related to the cubemap failure, but it seems radeon-rewrite does not set texture limits at all, other than 2D size. Old r100/r200 drivers used to call driCalculateMaxTextureLevels which set this, but now don't hence cube/rect/3d sizes end up with whatever mesa sets the default to (not good). Also allow_large_textures is still queried but won't have any effect, I think it still should be used at least when running without memory manager. Created attachment 26927 [details]
Screenshot
Corruption may look different at each run.
(In reply to comment #3) > Created an attachment (id=26927) [details] > Screenshot > > Corruption may look different at each run. Hmm yes looks like you get random data for all faces except the first. I guess there's something wrong with the cube emit, I've just fixed this for the non-mm case (no corruption there but a definitive "no" from the command verifier), but I'm not sure what's wrong with the mm case. I found it a bit strange the gem flags are different for textures and cube textures, but I doubt that causes problems... Using more recent mesa (commit 18a1c36c2d32f8c571f98d7e6857a44bb2dc8942 in master) and drm (commit de1ed01214874dcdd6116ff2587c8710d6ed4d2d) i started to see many "CS section size missmatch" lines in terminal: guest@slax:~$ cd source/mesa/progs/demos/ guest@slax:~/source/mesa/progs/demos$ ./cubemap DRM version 1.0 too old to support HyperZ, disabling. GL_RENDERER: Mesa DRI R200 (RV280 5964) 20090101 x86/MMX+/3DNow!+ TCL DRI2 GL_REFLECTION_MAP_ARB mode keys: SPACE - toggle animation CURSOR KEYS - rotation c - toggle texture clamp/wrap mode f - toggle texture filter mode m - toggle texgen reflection mode z/Z - change viewing distance CS section size missmatch start at (r200_state_init.c,cube_emit_cs,654) 22 vs 12 CS section end at (r200_state_init.c,cube_emit_cs,665) CS section size missmatch start at (r200_state_init.c,cube_emit_cs,654) 22 vs 12 CS section end at (r200_state_init.c,cube_emit_cs,665) CS section size missmatch start at (r200_state_init.c,cube_emit_cs,654) 22 vs 12 CS section end at (r200_state_init.c,cube_emit_cs,665) CS section size missmatch start at (r200_state_init.c,cube_emit_cs,654) 22 vs 12 CS section end at (r200_state_init.c,cube_emit_cs,665) CS section size missmatch start at (r200_state_init.c,cube_emit_cs,654) 22 vs 12 CS section end at (r200_state_init.c,cube_emit_cs,665) CS section size missmatch start at (r200_state_init.c,cube_emit_cs,654) 22 vs 12 CS section end at (r200_state_init.c,cube_emit_cs,665) Created attachment 27833 [details]
mmiotrace log
original filename cubemap_r200_compressed.gz It expands to 828K long log file. Events were - start X session with only one Eterm, run cubemap demo for few seconds.
radeon module was loaded with agpmode=-1.
Mass version move, cvs -> git Bug fixed in drm-next |
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.