OSDN Git Service

i965/gs: generalize brw_texture_surfaces in preparation for gs.
authorPaul Berry <stereotype441@gmail.com>
Fri, 21 Jun 2013 16:24:16 +0000 (09:24 -0700)
committerPaul Berry <stereotype441@gmail.com>
Sun, 1 Sep 2013 00:13:04 +0000 (17:13 -0700)
commit08d8ff0965af7e2dd7beb074efa08ec062b6a04a
tree7b7f3cdc97f5fa040754aef30a0fc405948a5d4b
parent5a8033f142e86ed51511c695138cacaf4532e6cf
i965/gs: generalize brw_texture_surfaces in preparation for gs.

There is a slight functionality change.  Previously we would compute a
common value for num_samplers for all stages, and populate that many
entries in each stage's surf_offset table regardless of how many
samplers each stage used.  Now we only populate the number of entries
in the surf_offset table corresponding to the number of samplers
actually used by the stage.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c