svga: fix PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE value
authorBrian Paul <brianp@vmware.com>
Mon, 10 Jul 2017 14:36:15 +0000 (08:36 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 10 Jul 2017 17:11:26 +0000 (11:11 -0600)
commit3b28eaabf603657c388caa72bc92b1b660d00b2a
treeb9cbe7a755e6f6d7716b3c3e6ba815d2be2742d0
parentf8f71cb6f394b8b655e760a6acec8ccff1a89cfc
svga: fix PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE value

This query is supposed to return the max texture buffer size/width in
texels, not size in bytes.  Divide by 16 (the largest format size) to
return texels.

Fixes Piglit arb_texture_buffer_object-max-size test.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by :Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_screen.c