Skip to content
Commit 03eaee15 authored by Francisco Jerez's avatar Francisco Jerez Committed by Juan A. Suarez Romero
Browse files

i965: Move buffer texture size calculation into a common helper function.

The buffer texture size calculations (should be easy enough, right?)
are repeated in three different places, each of them subtly broken in
a different way.  E.g. the image load/store path was never fixed to
clamp to MaxTextureBufferSize, and none of them are taking into
account the buffer offset correctly.  It's easier to fix it all in one
place.

Cc: mesa-stable@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106481


Reviewed-by: default avatarNanley Chery <nanley.g.chery@intel.com>
(cherry picked from commit 156d2c6e)
parent 8d5f09e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment