mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
nv50/ir: fix memset on non trivial types warning
Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Rhys Kidd <rhyskidd@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5819>
This commit is contained in:
parent
cd67e2c280
commit
02a57896f6
3 changed files with 3 additions and 5 deletions
|
|
@ -905,10 +905,8 @@ Instruction::isCommutationLegal(const Instruction *i) const
|
|||
}
|
||||
|
||||
TexInstruction::TexInstruction(Function *fn, operation op)
|
||||
: Instruction(fn, op, TYPE_F32)
|
||||
: Instruction(fn, op, TYPE_F32), tex()
|
||||
{
|
||||
memset(&tex, 0, sizeof(tex));
|
||||
|
||||
tex.rIndirectSrc = -1;
|
||||
tex.sIndirectSrc = -1;
|
||||
|
||||
|
|
|
|||
|
|
@ -983,7 +983,7 @@ public:
|
|||
class Target
|
||||
{
|
||||
public:
|
||||
Target(TexTarget targ = TEX_TARGET_2D) : target(targ) { }
|
||||
Target(TexTarget targ = TEX_TARGET_1D) : target(targ) { }
|
||||
|
||||
const char *getName() const { return descTable[target].name; }
|
||||
unsigned int getArgCount() const { return descTable[target].argc; }
|
||||
|
|
|
|||
|
|
@ -463,7 +463,7 @@ CodeEmitter::addInterp(int ipa, int reg, FixupApply apply)
|
|||
if (!fixupInfo)
|
||||
return false;
|
||||
if (n == 0)
|
||||
memset(fixupInfo, 0, sizeof(FixupInfo));
|
||||
fixupInfo->count = 0;
|
||||
}
|
||||
++fixupInfo->count;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue