i965: Skip _mesa_load_state_parameters when there are zero parameters.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 14 Nov 2014 06:50:03 +0000 (22:50 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Nov 2014 09:56:54 +0000 (01:56 -0800)
commit5e37a2a4a8aa9776ac17de794786479af2da2723
tree303e4f762bd86d73a2a2fabb79fbd1fc4e6c3e3d
parent6f7371619c5edcde647ae8f4822d1b5bae050ef6
i965: Skip _mesa_load_state_parameters when there are zero parameters.

Saves a tiny bit of CPU overhead.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vs_surface_state.c
src/mesa/drivers/dri/i965/gen6_vs_state.c