Re: [Mesa-dev] [PATCH 1/2] softpipe: fix sp_get_dims() for PIPE_BUFFER

2014-07-10 Thread Roland Scheidegger
Am 10.07.2014 17:43, schrieb Brian Paul: > Before, we were checking the level against view->u.tex.last_level but > level is not valid for buffers. Plus, the aliasing of the view->u.tex > view->u.buf members (a union) caused the level checking arithmetic to > be totally wrong. The net effect is we

[Mesa-dev] [PATCH 1/2] softpipe: fix sp_get_dims() for PIPE_BUFFER

2014-07-10 Thread Brian Paul
Before, we were checking the level against view->u.tex.last_level but level is not valid for buffers. Plus, the aliasing of the view->u.tex view->u.buf members (a union) caused the level checking arithmetic to be totally wrong. The net effect is we always returned early for PIPE_BUFFER size queri