i965: Make the constant surface interface take a normal byte size.
authorEric Anholt <eric@anholt.net>
Wed, 20 Mar 2013 17:46:20 +0000 (10:46 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 1 Apr 2013 23:17:25 +0000 (16:17 -0700)
commit2f41a601455e6e0366e28b6b84871842cb4bd341
tree8721a3182e5ad2675e15db7fe512b0f8dc5a32ec
parent8c694dfe6478ce9355c866ae70db45e49e499de3
i965: Make the constant surface interface take a normal byte size.

This puts the rounding-up logic into the function itself instead of all
the callers having to manage it.  Also drop an "unused" comment in gen4,
as the stride *is* used for texbos (and will be for uniforms soon).

NOTE: This is a candidate for the 9.1 branch.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vs_surface_state.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_context.h