aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/codegen
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2018-11-07 13:34:29 +0100
committerKarol Herbst <[email protected]>2018-11-07 17:48:58 +0100
commitf7fae7f64e126d0a92bc1f5f875164f77232364d (patch)
tree0991ad7e8f9375a9f499071fa1bf2a1c82af86c8 /src/gallium/drivers/nouveau/codegen
parent32b0eb51a310ef3d6605cdb31c70a10202463e6d (diff)
gm107/ir: fix compile time warning in getTEXSMask
In function 'uint8_t nv50_ir::getTEXSMask(uint8_t)': warning: control reaches end of non-void function [-Wreturn-type] Reported-by: Moiman@freenode Fixes: f821e80213e38e93f96255b3deacb737a600ed40 "gm107/ir: use scalar tex instructions where possible" Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
index 241061ab837..be00db31315 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
@@ -2738,6 +2738,7 @@ getTEXSMask(uint8_t mask)
case 0xf: return 0x4;
default:
assert(!"invalid mask");
+ return 0;
}
}