summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_sf.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-05-07 11:53:22 -0700
committerMatt Turner <mattst88@gmail.com>2014-05-15 15:45:40 -0700
commit74b252d270404a729fd41df9e835a368fa8f9044 (patch)
tree91f492f6534933b2f57a1e60b0fa2c4abb9d70f7 /src/mesa/drivers/dri/i965/brw_sf.c
parentcce3bea2a71e5c97eb4d2da6ed1cec45d74e2322 (diff)
downloadexternal_mesa3d-74b252d270404a729fd41df9e835a368fa8f9044.zip
external_mesa3d-74b252d270404a729fd41df9e835a368fa8f9044.tar.gz
external_mesa3d-74b252d270404a729fd41df9e835a368fa8f9044.tar.bz2
i965: Pull brw_compact_instructions() out of brw_get_program().
Acked-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_sf.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_sf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf.c b/src/mesa/drivers/dri/i965/brw_sf.c
index 61d308a..401fa7b 100644
--- a/src/mesa/drivers/dri/i965/brw_sf.c
+++ b/src/mesa/drivers/dri/i965/brw_sf.c
@@ -110,6 +110,8 @@ static void compile_sf_prog( struct brw_context *brw,
return;
}
+ brw_compact_instructions(&c.func);
+
/* get the program
*/
program = brw_get_program(&c.func, &program_size);