aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2018-04-16 18:54:45 -0500
committerGeorge Kyriazis <[email protected]>2018-04-27 14:36:41 -0500
commit6b1c852ebc98f4328b83bc0c9c2024ff8da4cb9d (patch)
treed485906d7fe7deae5c55c15716a03a1bd0bfa3a3 /src/gallium
parente6daa62a48c62071d9fda8000f9d58b86a8b037d (diff)
swr/rast: Silence warnings
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/blend_jit.cpp2
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp1
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp3
3 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/blend_jit.cpp b/src/gallium/drivers/swr/rasterizer/jitter/blend_jit.cpp
index 58fdb7fb171..72bf900c85e 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/blend_jit.cpp
+++ b/src/gallium/drivers/swr/rasterizer/jitter/blend_jit.cpp
@@ -558,8 +558,6 @@ struct BlendJit : public Builder
ppoMask->setName("ppoMask");
Value* ppMask = LOAD(pBlendContext, { 0, SWR_BLEND_CONTEXT_pMask });
ppMask->setName("pMask");
- Value* AlphaTest1 = LOAD(pBlendContext, { 0, SWR_BLEND_CONTEXT_isAlphaBlended });
- ppMask->setName("AlphaTest1");
static_assert(KNOB_COLOR_HOT_TILE_FORMAT == R32G32B32A32_FLOAT, "Unsupported hot tile format");
Value* dst[4];
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp b/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp
index a43c787e494..48f0961cdc9 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp
+++ b/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp
@@ -1070,7 +1070,6 @@ Value* FetchJit::GetSimdValid16bitIndices(Value* pIndices, Value* pLastIndex)
Value* FetchJit::GetSimdValid32bitIndices(Value* pIndices, Value* pLastIndex)
{
DataLayout dL(JM()->mpCurrentModule);
- unsigned int ptrSize = dL.getPointerSize() * 8; // ptr size in bits
Value* iLastIndex = pLastIndex;
Value* iIndices = pIndices;
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp b/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp
index eac0549c263..b8c329635c1 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp
+++ b/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp
@@ -168,7 +168,6 @@ namespace SwrJit
// intrinsic.
void GetRequestedWidthAndType(CallInst* pCallInst, const StringRef intrinName, TargetWidth* pWidth, Type** pTy)
{
- uint32_t vecWidth;
Type* pVecTy = pCallInst->getType();
// Check for intrinsic specific types
@@ -210,6 +209,7 @@ namespace SwrJit
{
case W256: numElem = 8; break;
case W512: numElem = 16; break;
+ default: SWR_ASSERT(false, "Unhandled vector width type %d\n", width);
}
return ConstantVector::getNullValue(VectorType::get(pTy, numElem));
@@ -222,6 +222,7 @@ namespace SwrJit
{
case W256: mask = B->C((uint8_t)-1); break;
case W512: mask = B->C((uint16_t)-1); break;
+ default: SWR_ASSERT(false, "Unhandled vector width type %d\n", width);
}
return mask;
}