OSDN Git Service

i965/fs: Don't upload unused uniform components.
authorEric Anholt <eric@anholt.net>
Tue, 26 Jul 2011 01:13:04 +0000 (18:13 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 5 Aug 2011 17:08:31 +0000 (10:08 -0700)
commitee0373b833155804bb8846c6f05f897b9ee5afa6
tree9550aa61942a3c78d5b2fe177a9c830ffe572d4f
parent0722edc59cd526437c2d4bad474b934dad84d789
i965/fs: Don't upload unused uniform components.

This saves both register space and upload bandwidth for unused values.

Note that previously we were relying on the visitor not initially
generating references to different sets of uniforms between the 8-wide
and 16-wide code generation, and now we're relying on them dead-code
eliminating the same stuff, too.
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h