swr: fix unused variable warnings
authorTim Rowley <timothy.o.rowley@intel.com>
Fri, 7 Apr 2017 00:09:23 +0000 (19:09 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 7 Apr 2017 21:50:41 +0000 (16:50 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_screen.cpp
src/gallium/drivers/swr/swr_shader.cpp

index 0a5060beb165ec067b2883ea9bf18d3ea31db747..d737ddfb3abe46f0176f596222fa4fa90a13ec3c 100644 (file)
@@ -879,7 +879,6 @@ swr_resource_destroy(struct pipe_screen *p_screen, struct pipe_resource *pt)
 {
    struct swr_screen *screen = swr_screen(p_screen);
    struct swr_resource *spr = swr_resource(pt);
-   struct pipe_context *pipe = screen->pipe;
 
    if (spr->display_target) {
       /* If resource is display target, winsys manages the buffer and will
index 9d42ecd4ea8a100137f1d768ff4412cbd358d822..6fc0596ed6011f91211c3a190f204b309849b9f2 100644 (file)
@@ -490,7 +490,6 @@ BuilderSWR::swr_gs_llvm_epilogue(const struct lp_build_tgsi_gs_iface *gs_base,
                         LLVMValueRef emitted_prims_vec)
 {
    swr_gs_llvm_iface *iface = (swr_gs_llvm_iface*)gs_base;
-   SWR_GS_STATE *pGS = iface->pGsState;
 
    IRB()->SetInsertPoint(unwrap(LLVMGetInsertBlock(gallivm->builder)));