i965/wm: surfaces should have the API buffer size, not the drm buffer size
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 24 Apr 2015 05:02:19 +0000 (07:02 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:21 +0000 (08:39 +0200)
commit5bb5eeea008a01f5bc44570915ea4b7ac432cef9
treedfbd221c0e3f092efdb2290aa0369db85d4ee6ea
parenteaa6f01c8d0c49d8ae637d8104163da9c45526ca
i965/wm: surfaces should have the API buffer size, not the drm buffer size

The returned drm buffer object has a size multiple of 4096 but that should not
be exposed to the API user, which is working with a different size.

As far as I can see this problem is only visible in the calculation of the
length of unsized arrays used in SSBOs, as the implementation of this needs
to query the underlying buffer size via a message.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c