mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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>
(cherry picked from commit 3b28eaabf6)
This commit is contained in:
parent
82aff6ad18
commit
8d0fa95bf2
1 changed files with 4 additions and 1 deletions
|
|
@ -303,7 +303,10 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
return svgascreen->ms_samples ? 1 : 0;
|
||||
|
||||
case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE:
|
||||
return SVGA3D_DX_MAX_RESOURCE_SIZE;
|
||||
/* convert bytes to texels for the case of the largest texel
|
||||
* size: float[4].
|
||||
*/
|
||||
return SVGA3D_DX_MAX_RESOURCE_SIZE / (4 * sizeof(float));
|
||||
|
||||
case PIPE_CAP_MIN_TEXEL_OFFSET:
|
||||
return sws->have_vgpu10 ? VGPU10_MIN_TEXEL_FETCH_OFFSET : 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue