i965/fs: Remove bogus field prog_data->dispatch_width.
authorPaul Berry <stereotype441@gmail.com>
Sun, 1 Sep 2013 12:49:17 +0000 (05:49 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 15 Oct 2013 18:34:30 +0000 (11:34 -0700)
commitcaf9cef7eee77f736ff76a65f385bf718efd1dc1
tree771e8a120c3e8436a5327ca7d12d3b89bdded863
parent2910a82eb43bafc73d542336c21f415f5f4a3bed
i965/fs: Remove bogus field prog_data->dispatch_width.

Despite the name, this field wasn't being set to the dispatch width at
all; it was always 8.  The only place it was used was that the
constant buffer read length was aligned to it, and as far as I can
tell from the docs, there is no need to align this value to the
dispatch width; aligning it to a multiple of 8 is sufficient.  So I've
just replaced it with a hardcoded 8.

v2: In gen6_wm_state, use brw->wm.base.push_const_size for consistency
with VS and GS state upload.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/gen6_wm_state.c