Summary: | [bisected] regression: assert in r600_bind_sampler_states since 27c054edf0ae92c8c498830e7c7510fa94f5dcfd | ||
---|---|---|---|
Product: | Mesa | Reporter: | Alexandre Demers <alexandre.f.demers> |
Component: | Drivers/Gallium/r600 | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | brianp |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Replace overkill assert by |
Description
Alexandre Demers
2013-10-04 03:34:36 UTC
Easy one: under r600_bind_sampler_states(), there is an assert. Since I'm building with --enable-debug, I hit it. if (shader != PIPE_SHADER_VERTEX && shader != PIPE_SHADER_FRAGMENT) { assert(!"Only vertex/fragment sampler are implemented."); return; } I suggest we should/could print out an error message if needed, but it shouldn't be an assert() since we return just after that without doing anything if the shader is not of the supported type. In fact, I tested mesa with the assert commented out and everything was back to the way it used to be, so we really don't need an assert() there. A R600_ERR() seems to do the trick here: if (shader != PIPE_SHADER_VERTEX && shader != PIPE_SHADER_FRAGMENT) { R600_ERR("!Only vertex/fragment sampler are implemented.\n"); return; } Created attachment 87133 [details] [review] Replace overkill assert by It fixes an unneeded assert preventing some app to launch as they should. Please review and commit. Fixed by c04b8d1daba5468a7ea991a65570a41951e2da7d. Closing. |
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.