diff options
author | Rob Clark <[email protected]> | 2015-02-21 13:39:06 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-02-21 17:11:02 -0500 |
commit | bdf023482a6fd07adef090fb66a4aaaac22810fc (patch) | |
tree | bff8acc78c6630eb1a57c85ccc304eda74621cde /src/gallium/drivers/freedreno/a3xx/fd3_program.c | |
parent | 9153dd4b7eb95728aa9746a45a9dd136458d0213 (diff) |
freedreno/a4xx: bit of cleanup
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx/fd3_program.c')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_program.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_program.c b/src/gallium/drivers/freedreno/a3xx/fd3_program.c index db729434974..b6c448e8650 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_program.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_program.c @@ -365,7 +365,10 @@ fd3_program_emit(struct fd_ringbuffer *ring, struct fd3_emit *emit) COND(vp->writes_psize, A3XX_VPC_ATTR_PSIZE)); OUT_RING(ring, 0x00000000); } else { - uint32_t vinterp[4] = {0}, flatshade[2] = {0}; + uint32_t vinterp[4], flatshade[2]; + + memset(vinterp, 0, sizeof(vinterp)); + memset(flatshade, 0, sizeof(flatshade)); /* figure out VARYING_INTERP / FLAT_SHAD register values: */ for (j = -1; (j = ir3_next_varying(fp, j)) < (int)fp->inputs_count; ) { |