mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 00:00:25 +01:00
nvfx: Initialize variables.
This commit is contained in:
parent
0268e8984c
commit
63c6d6add1
2 changed files with 4 additions and 4 deletions
|
|
@ -236,7 +236,7 @@ nvfx_fp_tex(struct nvfx_fpc *fpc, int sat, int op, int unit,
|
|||
static INLINE struct nvfx_sreg
|
||||
tgsi_src(struct nvfx_fpc *fpc, const struct tgsi_full_src_register *fsrc)
|
||||
{
|
||||
struct nvfx_sreg src;
|
||||
struct nvfx_sreg src = { 0 };
|
||||
|
||||
switch (fsrc->Register.File) {
|
||||
case TGSI_FILE_INPUT:
|
||||
|
|
@ -304,7 +304,7 @@ nvfx_fragprog_parse_instruction(struct nvfx_context* nvfx, struct nvfx_fpc *fpc,
|
|||
{
|
||||
const struct nvfx_sreg none = nvfx_sr(NVFXSR_NONE, 0);
|
||||
struct nvfx_sreg src[3], dst, tmp;
|
||||
int mask, sat, unit;
|
||||
int mask, sat, unit = 0;
|
||||
int ai = -1, ci = -1, ii = -1;
|
||||
int i;
|
||||
|
||||
|
|
|
|||
|
|
@ -334,7 +334,7 @@ nvfx_vp_arith(struct nvfx_context* nvfx, struct nvfx_vpc *vpc, int slot, int op,
|
|||
|
||||
static INLINE struct nvfx_sreg
|
||||
tgsi_src(struct nvfx_vpc *vpc, const struct tgsi_full_src_register *fsrc) {
|
||||
struct nvfx_sreg src;
|
||||
struct nvfx_sreg src = { 0 };
|
||||
|
||||
switch (fsrc->Register.File) {
|
||||
case TGSI_FILE_INPUT:
|
||||
|
|
@ -365,7 +365,7 @@ tgsi_src(struct nvfx_vpc *vpc, const struct tgsi_full_src_register *fsrc) {
|
|||
|
||||
static INLINE struct nvfx_sreg
|
||||
tgsi_dst(struct nvfx_vpc *vpc, const struct tgsi_full_dst_register *fdst) {
|
||||
struct nvfx_sreg dst;
|
||||
struct nvfx_sreg dst = { 0 };
|
||||
|
||||
switch (fdst->Register.File) {
|
||||
case TGSI_FILE_OUTPUT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue