tgsi: avoid returning pointer to local var, make it static
Spotted by Coverity. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user