summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-05-16 09:44:10 +1000
committerDave Airlie <airlied@redhat.com>2011-05-18 17:31:51 +1000
commit6bd8647b54054a59bdb4f0c170c4481eaadc81ff (patch)
tree28b5a3e33743063fe2d3dedae24ef78d8860b49f /src/mesa/state_tracker/st_atom.h
parentecc051d65b6e17115439fb3609cccfd59f6272bf (diff)
downloadexternal_mesa3d-6bd8647b54054a59bdb4f0c170c4481eaadc81ff.zip
external_mesa3d-6bd8647b54054a59bdb4f0c170c4481eaadc81ff.tar.gz
external_mesa3d-6bd8647b54054a59bdb4f0c170c4481eaadc81ff.tar.bz2
st/mesa: only memset sampler when about to use it.
This function was taking a lot more CPU than required due to it memsetting a bunch of memory that didn't require it from what I can see. We should only memset here when we are about to fill out the sampler, otherwise we end up doing a bunch of memsets for everytime this function is called, basically setting 0 memory to 0. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/state_tracker/st_atom.h')
0 files changed, 0 insertions, 0 deletions