When mipmap generation is enabled, if NULL is passed for pixels to TexImage2D, then then a crash occurs because the code attempts to generate a mipmap but there is no source data for the image yet. Note: I updated TexSubImage2D correspondingly, even though pixels=NULL is not allowed for TexSubImage2D, for code consistency and because it appears that pixels=NULL is not currently caught by the wrapper code and is otherwise a no-op, so it's better not to crash just for this.
Created attachment 25673 [details] [review] radeon: Don't crash generating mipmaps when pixels=NULL
pushed: ca792be42b238bd1c8f8a99ad72ea8558cbbfc32
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.