summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-02-21 12:44:05 -0500
committerIlia Mirkin <[email protected]>2015-02-21 17:27:24 -0500
commit1763494b315179495eabb97d50d025a04a6537e2 (patch)
treeb08be09b37a3db433d98714509f56a0d3b9f606a /src/gallium/auxiliary
parent51e335742e55d6725fd5c4558158769a32f70f22 (diff)
tgsi: avoid returning pointer to local var, make it static
Spotted by Coverity. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index a8fc0089f5a..8d08059deca 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -1515,7 +1515,7 @@ store_dest_dstret(struct tgsi_exec_machine *mach,
enum tgsi_exec_datatype dst_datatype)
{
uint i;
- union tgsi_exec_channel null;
+ static union tgsi_exec_channel null;
union tgsi_exec_channel *dst;
union tgsi_exec_channel index2D;
uint execmask = mach->ExecMask;