From: Zack Rusin Date: Fri, 26 Oct 2007 23:53:53 +0000 (-0400) Subject: Make sure the swizzling vector is being recreated for each function. This makes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=abe8cd19171def0de000e58b9f71c43adf4c6336;p=mesa.git Make sure the swizzling vector is being recreated for each function. This makes GLSL bricks work. --- diff --git a/src/mesa/pipe/llvm/storage.cpp b/src/mesa/pipe/llvm/storage.cpp index 7300cdfef06..dca8b399585 100644 --- a/src/mesa/pipe/llvm/storage.cpp +++ b/src/mesa/pipe/llvm/storage.cpp @@ -383,6 +383,7 @@ void Storage::pushTemps() } ++i; } + m_extSwizzleVec = 0; } void Storage::popTemps() diff --git a/src/mesa/pipe/llvm/storage.h b/src/mesa/pipe/llvm/storage.h index eeadaa0506a..ac3e4d5af97 100644 --- a/src/mesa/pipe/llvm/storage.h +++ b/src/mesa/pipe/llvm/storage.h @@ -106,11 +106,6 @@ private: llvm::VectorType *m_floatVecType; llvm::VectorType *m_intVecType; - llvm::Value *m_undefFloatVec; - llvm::Value *m_undefIntVec; - - llvm::Value *m_extSwizzleVec; - char m_name[32]; int m_idx; @@ -118,6 +113,10 @@ private: std::map m_destWriteMap; + llvm::Value *m_undefFloatVec; + llvm::Value *m_undefIntVec; + llvm::Value *m_extSwizzleVec; + struct Args { llvm::Value *out; llvm::Value *in;