OSDN Git Service

nv50,nvc0: zero out program struct on program_destroy
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 11 Jan 2012 17:50:15 +0000 (18:50 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 11 Jan 2012 19:26:47 +0000 (20:26 +0100)
commitf6b994b3058d1c6cd7c28eef522c08df3d83bea7
tree4cccab3923631e35b2208050d434c459f45ac0ce
parent58dc1b28d1ef4d1931c52b079d304f2e1546329d
nv50,nvc0: zero out program struct on program_destroy

Prevent any state from carrying over to a new translation in cases
where we assume that data is still zero from initial calloc (these
would require us to do individual zeroing before translation which
would be more code).
src/gallium/drivers/nv50/nv50_program.c
src/gallium/drivers/nvc0/nvc0_program.c