From: Samuel Pitoiset Date: Tue, 5 Jul 2016 12:01:34 +0000 (+0200) Subject: nvc0/ir: remove unused resource info loading helpers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0bf1768c7131a5d9a23c5177e7b9d7a0267ef6c;p=mesa.git nvc0/ir: remove unused resource info loading helpers Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp index 561ff628bc1..973577353ce 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp @@ -1450,24 +1450,6 @@ NVC0LoweringPass::loadResLength32(Value *ptr, uint32_t off, uint16_t base) mkLoadv(TYPE_U32, bld.mkSymbol(FILE_MEMORY_CONST, b, TYPE_U64, off + 8), ptr); } -inline Value * -NVC0LoweringPass::loadSuInfo64(Value *ptr, uint32_t off) -{ - return loadResInfo64(ptr, off, prog->driver->io.suInfoBase); -} - -inline Value * -NVC0LoweringPass::loadSuLength32(Value *ptr, uint32_t off) -{ - return loadResLength32(ptr, off, prog->driver->io.suInfoBase); -} - -inline Value * -NVC0LoweringPass::loadBufInfo32(Value *ptr, uint32_t off) -{ - return loadResInfo32(ptr, off, prog->driver->io.bufInfoBase); -} - inline Value * NVC0LoweringPass::loadBufInfo64(Value *ptr, uint32_t off) { @@ -1480,12 +1462,6 @@ NVC0LoweringPass::loadBufLength32(Value *ptr, uint32_t off) return loadResLength32(ptr, off, prog->driver->io.bufInfoBase); } -inline Value * -NVC0LoweringPass::loadUboInfo32(Value *ptr, uint32_t off) -{ - return loadResInfo32(ptr, off, prog->driver->io.uboInfoBase); -} - inline Value * NVC0LoweringPass::loadUboInfo64(Value *ptr, uint32_t off) { diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.h index 5ab27ce7b51..4d7d8cc8a8a 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.h +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.h @@ -127,12 +127,8 @@ private: Value *loadResInfo64(Value *ptr, uint32_t off, uint16_t base); Value *loadResLength32(Value *ptr, uint32_t off, uint16_t base); Value *loadSuInfo32(Value *ptr, int slot, uint32_t off); - Value *loadSuInfo64(Value *ptr, uint32_t off); - Value *loadSuLength32(Value *ptr, uint32_t off); - Value *loadBufInfo32(Value *ptr, uint32_t off); Value *loadBufInfo64(Value *ptr, uint32_t off); Value *loadBufLength32(Value *ptr, uint32_t off); - Value *loadUboInfo32(Value *ptr, uint32_t off); Value *loadUboInfo64(Value *ptr, uint32_t off); Value *loadUboLength32(Value *ptr, uint32_t off); Value *loadMsInfo32(Value *ptr, uint32_t off);