commit | 6158c0b5d8b6367a46acbe2fe20357210422c96f | [log] [tgz] |
---|---|---|
author | Brian Paul <brianp@vmware.com> | Fri Jun 30 14:11:01 2017 -0700 |
committer | Brian Paul <brianp@vmware.com> | Mon Jul 03 10:10:14 2017 -0600 |
tree | d42d43e845c2224c83d5c0975e6fc86c5dfbe351 | |
parent | e6d1cc31fa7a7252c07933a7e311fb0d8b331e12 [diff] |
svga: don't call svga_texture_device_format_has_alpha() for PIPE_BUFFER svga_texture_device_format_has_alpha() is only intended to work for texture resources, not buffer resources. This fixes a failed assertion in the svga_texture() cast function when running texture buffer tests. Also, add an assertion in svga_texture_device_format_has_alpha() to catch the issue sooner. Reviewed-by: Charmaine Lee <charmainel@vmware.com>