Summary: | Flightgear still asserts due to RADEON_MAX_TEXTURE_LEVELS on radeon-rewrite as of today | ||
---|---|---|---|
Product: | Mesa | Reporter: | Mathias Fröhlich <Mathias.Froehlich> |
Component: | Drivers/DRI/r300 | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Mathias Fröhlich
2009-05-22 00:48:04 UTC
See commit e101959b6a262ba34a12b407ea6f480e6b4d7d72 for how I fixed this in master. Looks like that wasn't properly merge into radeon-rewrite. (In reply to comment #1) > See commit e101959b6a262ba34a12b407ea6f480e6b4d7d72 for how I fixed this in > master. Looks like that wasn't properly merge into radeon-rewrite. Hmm, the R300_MAX_TEXTURE_SIZE define did not make it into the rewrite branch. Indeed. The files in question are drastically changed. I tried to define R300_MAX_TEXTURE_SIZE and use that like you did. The problem here is that the radeon_mipmap_tree.h header where this static array size is used is a radeon/r200/r300... data structure. So using a define that is defined in R300 specific headers will not work. Solutions: * Define a mesa private define for the r* drivers. * Or use a runtime dynamic sized array for that. For the rewrite branch it would be possible to use the 'array at end of struct' trick and statically declare a one sized array but CALLOC sufficient space for a glCtx->MaxTextureLevels sized array. This way the second malloc could be avoided - if this is your concern. BTW. tell me if I am just too impatient. I hope that I can help to push that corners where I can see problems. But if that is too early, tell me ... Willing to provide patches when helpful. Greetings and Thanks Mathias can you test with mesa master? (I merged rewrite and fixed this afterwards.) (In reply to comment #3) > can you test with mesa master? (I merged rewrite and fixed this afterwards.) Works now. Marked this bug as fixed. Thanks! Mathias |
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.