diff options
author | Dave Airlie <airlied@redhat.com> | 2016-04-26 14:24:53 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-04-26 14:36:37 +1000 |
commit | ee129c0edcce5014751e8060f5b0c6ad6b38c87a (patch) | |
tree | e62a0b9c999687cc35653e6fc24464a54a146f6b | |
parent | 89b83e770c49d2a4f4e3dc2ae3fb323ec016025e (diff) |
tgsi/exec: split out setting up masks to separate function
This is just a cleanup that will make later changes easier
to make.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_exec.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index 294f2abf2d0..9baac0f41f2 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -5650,16 +5650,9 @@ exec_instruction( } } - -/** - * Run TGSI interpreter. - * \return bitmask of "alive" quad components - */ -uint -tgsi_exec_machine_run( struct tgsi_exec_machine *mach, int start_pc ) +static void +tgsi_exec_machine_setup_masks(struct tgsi_exec_machine *mach) { - uint i; - int pc = 0; uint default_mask = 0xf; mach->Temps[TEMP_KILMASK_I].xyzw[TEMP_KILMASK_C].u[0] = 0; @@ -5688,7 +5681,19 @@ tgsi_exec_machine_run( struct tgsi_exec_machine *mach, int start_pc ) assert(mach->SwitchStackTop == 0); assert(mach->BreakStackTop == 0); assert(mach->CallStackTop == 0); +} + +/** + * Run TGSI interpreter. + * \return bitmask of "alive" quad components + */ +uint +tgsi_exec_machine_run( struct tgsi_exec_machine *mach, int start_pc ) +{ + uint i; + int pc = 0; + tgsi_exec_machine_setup_masks(mach); /* execute declarations (interpolants) */ for (i = 0; i < mach->NumDeclarations; i++) { |