Home
last modified time | relevance | path

Searched refs:Shader (Results 1 – 25 of 1054) sorted by relevance

12345678910>>...43

/external/swiftshader/src/Pipeline/
DPixelShader.cpp23 PixelShader::PixelShader(const PixelShader *ps) : Shader() in PixelShader()
34 append(new sw::Shader::Instruction(*ps->getInstruction(i))); in PixelShader()
47 PixelShader::PixelShader(const unsigned long *token) : Shader() in PixelShader()
92 Shader::Opcode opcode = (Shader::Opcode)(token[i] & 0x0000FFFF); in validate()
96 case Shader::OPCODE_RESERVED0: in validate()
97 case Shader::OPCODE_MOVA: in validate()
141 void PixelShader::setInput(int inputIdx, int nbComponents, const sw::Shader::Semantic& semantic) in setInput()
149 const sw::Shader::Semantic& PixelShader::getInput(int inputIdx, int component) const in getInput()
172 if(inst->opcode == Shader::OPCODE_TEXM3X2DEPTH || in analyzeZOverride()
173 inst->opcode == Shader::OPCODE_TEXDEPTH || in analyzeZOverride()
[all …]
DVertexShader.cpp24 VertexShader::VertexShader(const VertexShader *vs) : Shader() in VertexShader()
43 append(new sw::Shader::Instruction(*vs->getInstruction(i))); in VertexShader()
60 VertexShader::VertexShader(const unsigned long *token) : Shader() in VertexShader()
112 Shader::Opcode opcode = (Shader::Opcode)(token[i] & 0x0000FFFF); in validate()
116 case Shader::OPCODE_TEXCOORD: in validate()
117 case Shader::OPCODE_TEXKILL: in validate()
118 case Shader::OPCODE_TEX: in validate()
119 case Shader::OPCODE_TEXBEM: in validate()
120 case Shader::OPCODE_TEXBEML: in validate()
121 case Shader::OPCODE_TEXREG2AR: in validate()
[all …]
DVertexProgram.cpp94 const Shader::Instruction *instruction = shader->getInstruction(i); in program()
95 Shader::Opcode opcode = instruction->opcode; in program()
97 if(opcode == Shader::OPCODE_CALL || opcode == Shader::OPCODE_CALLNZ) in program()
108 const Shader::Instruction *instruction = shader->getInstruction(i); in program()
109 Shader::Opcode opcode = instruction->opcode; in program()
111 …if(opcode == Shader::OPCODE_DCL || opcode == Shader::OPCODE_DEF || opcode == Shader::OPCODE_DEFI |… in program()
125 bool integer = dst.type == Shader::PARAMETER_ADDR; in program()
135 if(src0.type != Shader::PARAMETER_VOID) s0 = fetchRegister(src0); in program()
136 if(src1.type != Shader::PARAMETER_VOID) s1 = fetchRegister(src1); in program()
137 if(src2.type != Shader::PARAMETER_VOID) s2 = fetchRegister(src2); in program()
[all …]
DPixelProgram.cpp90 const Shader::Instruction *instruction = shader->getInstruction(i); in applyShader()
91 Shader::Opcode opcode = instruction->opcode; in applyShader()
93 if(opcode == Shader::OPCODE_CALL || opcode == Shader::OPCODE_CALLNZ) in applyShader()
106 const Shader::Instruction *instruction = shader->getInstruction(i); in applyShader()
107 Shader::Opcode opcode = instruction->opcode; in applyShader()
109 …if(opcode == Shader::OPCODE_DCL || opcode == Shader::OPCODE_DEF || opcode == Shader::OPCODE_DEFI |… in applyShader()
134 if(opcode == Shader::OPCODE_TEXKILL) // Takes destination as input in applyShader()
136 if(dst.type == Shader::PARAMETER_TEXTURE) in applyShader()
149 if(src0.type != Shader::PARAMETER_VOID) s0 = fetchRegister(src0); in applyShader()
150 if(src1.type != Shader::PARAMETER_VOID) s1 = fetchRegister(src1); in applyShader()
[all …]
DShader.cpp29 volatile int Shader::serialCounter = 1;
31 Shader::Opcode Shader::OPCODE_DP(int i) in OPCODE_DP()
43 Shader::Opcode Shader::OPCODE_LEN(int i) in OPCODE_LEN()
55 Shader::Opcode Shader::OPCODE_DIST(int i) in OPCODE_DIST()
67 Shader::Opcode Shader::OPCODE_NRM(int i) in OPCODE_NRM()
79 Shader::Opcode Shader::OPCODE_FORWARD(int i) in OPCODE_FORWARD()
91 Shader::Opcode Shader::OPCODE_REFLECT(int i) in OPCODE_REFLECT()
103 Shader::Opcode Shader::OPCODE_REFRACT(int i) in OPCODE_REFRACT()
115 Shader::Instruction::Instruction(Opcode opcode) : opcode(opcode), analysis(0) in Instruction()
129Shader::Instruction::Instruction(const unsigned long *token, int size, unsigned char majorVersion)… in Instruction()
[all …]
/external/swiftshader/src/Shader/
DPixelShader.cpp23 PixelShader::PixelShader(const PixelShader *ps) : Shader() in PixelShader()
34 append(new sw::Shader::Instruction(*ps->getInstruction(i))); in PixelShader()
47 PixelShader::PixelShader(const unsigned long *token) : Shader() in PixelShader()
92 Shader::Opcode opcode = (Shader::Opcode)(token[i] & 0x0000FFFF); in validate()
96 case Shader::OPCODE_RESERVED0: in validate()
97 case Shader::OPCODE_MOVA: in validate()
141 void PixelShader::setInput(int inputIdx, int nbComponents, const sw::Shader::Semantic& semantic) in setInput()
149 const sw::Shader::Semantic& PixelShader::getInput(int inputIdx, int component) const in getInput()
172 if(inst->opcode == Shader::OPCODE_TEXM3X2DEPTH || in analyzeZOverride()
173 inst->opcode == Shader::OPCODE_TEXDEPTH || in analyzeZOverride()
[all …]
DVertexShader.cpp24 VertexShader::VertexShader(const VertexShader *vs) : Shader() in VertexShader()
43 append(new sw::Shader::Instruction(*vs->getInstruction(i))); in VertexShader()
60 VertexShader::VertexShader(const unsigned long *token) : Shader() in VertexShader()
112 Shader::Opcode opcode = (Shader::Opcode)(token[i] & 0x0000FFFF); in validate()
116 case Shader::OPCODE_TEXCOORD: in validate()
117 case Shader::OPCODE_TEXKILL: in validate()
118 case Shader::OPCODE_TEX: in validate()
119 case Shader::OPCODE_TEXBEM: in validate()
120 case Shader::OPCODE_TEXBEML: in validate()
121 case Shader::OPCODE_TEXREG2AR: in validate()
[all …]
DVertexProgram.cpp101 const Shader::Instruction *instruction = shader->getInstruction(i); in program()
102 Shader::Opcode opcode = instruction->opcode; in program()
104 if(opcode == Shader::OPCODE_CALL || opcode == Shader::OPCODE_CALLNZ) in program()
115 const Shader::Instruction *instruction = shader->getInstruction(i); in program()
116 Shader::Opcode opcode = instruction->opcode; in program()
118 …if(opcode == Shader::OPCODE_DCL || opcode == Shader::OPCODE_DEF || opcode == Shader::OPCODE_DEFI |… in program()
132 bool integer = dst.type == Shader::PARAMETER_ADDR; in program()
142 if(src0.type != Shader::PARAMETER_VOID) s0 = fetchRegister(src0); in program()
143 if(src1.type != Shader::PARAMETER_VOID) s1 = fetchRegister(src1); in program()
144 if(src2.type != Shader::PARAMETER_VOID) s2 = fetchRegister(src2); in program()
[all …]
DPixelProgram.cpp90 const Shader::Instruction *instruction = shader->getInstruction(i); in applyShader()
91 Shader::Opcode opcode = instruction->opcode; in applyShader()
93 if(opcode == Shader::OPCODE_CALL || opcode == Shader::OPCODE_CALLNZ) in applyShader()
106 const Shader::Instruction *instruction = shader->getInstruction(i); in applyShader()
107 Shader::Opcode opcode = instruction->opcode; in applyShader()
109 …if(opcode == Shader::OPCODE_DCL || opcode == Shader::OPCODE_DEF || opcode == Shader::OPCODE_DEFI |… in applyShader()
134 if(opcode == Shader::OPCODE_TEXKILL) // Takes destination as input in applyShader()
136 if(dst.type == Shader::PARAMETER_TEXTURE) in applyShader()
149 if(src0.type != Shader::PARAMETER_VOID) s0 = fetchRegister(src0); in applyShader()
150 if(src1.type != Shader::PARAMETER_VOID) s1 = fetchRegister(src1); in applyShader()
[all …]
DShader.cpp29 volatile int Shader::serialCounter = 1;
31 Shader::Opcode Shader::OPCODE_DP(int i) in OPCODE_DP()
43 Shader::Opcode Shader::OPCODE_LEN(int i) in OPCODE_LEN()
55 Shader::Opcode Shader::OPCODE_DIST(int i) in OPCODE_DIST()
67 Shader::Opcode Shader::OPCODE_NRM(int i) in OPCODE_NRM()
79 Shader::Opcode Shader::OPCODE_FORWARD(int i) in OPCODE_FORWARD()
91 Shader::Opcode Shader::OPCODE_REFLECT(int i) in OPCODE_REFLECT()
103 Shader::Opcode Shader::OPCODE_REFRACT(int i) in OPCODE_REFRACT()
115 Shader::Instruction::Instruction(Opcode opcode) : opcode(opcode), analysis(0) in Instruction()
129Shader::Instruction::Instruction(const unsigned long *token, int size, unsigned char majorVersion)… in Instruction()
[all …]
DPixelPipeline.cpp74 const Shader::Instruction *instruction = shader->getInstruction(i); in applyShader()
75 Shader::Opcode opcode = instruction->opcode; in applyShader()
81 …if(opcode == Shader::OPCODE_DCL || opcode == Shader::OPCODE_DEF || opcode == Shader::OPCODE_DEFI |… in applyShader()
100 if(src0.type != Shader::PARAMETER_VOID) s0 = fetchRegister(src0); in applyShader()
101 if(src1.type != Shader::PARAMETER_VOID) s1 = fetchRegister(src1); in applyShader()
102 if(src2.type != Shader::PARAMETER_VOID) s2 = fetchRegister(src2); in applyShader()
111 case Shader::OPCODE_PS_1_0: break; in applyShader()
112 case Shader::OPCODE_PS_1_1: break; in applyShader()
113 case Shader::OPCODE_PS_1_2: break; in applyShader()
114 case Shader::OPCODE_PS_1_3: break; in applyShader()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/
Doperand_capabilities_test.cpp98 CASE1(EXECUTION_MODEL, ExecutionModelVertex, Shader),
104 CASE1(EXECUTION_MODEL, ExecutionModelFragment, Shader),
105 CASE1(EXECUTION_MODEL, ExecutionModelGLCompute, Shader),
124 CASE1(MEMORY_MODEL, MemoryModelSimple, Shader),
125 CASE1(MEMORY_MODEL, MemoryModelGLSL450, Shader),
143 CASE1(EXECUTION_MODE, ExecutionModePixelCenterInteger, Shader),
144 CASE1(EXECUTION_MODE, ExecutionModeOriginUpperLeft, Shader),
145 CASE1(EXECUTION_MODE, ExecutionModeOriginLowerLeft, Shader),
146 CASE1(EXECUTION_MODE, ExecutionModeEarlyFragmentTests, Shader),
149 CASE1(EXECUTION_MODE, ExecutionModeDepthReplacing, Shader),
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Doperand_capabilities_test.cpp98 CASE1(EXECUTION_MODEL, ExecutionModelVertex, Shader),
104 CASE1(EXECUTION_MODEL, ExecutionModelFragment, Shader),
105 CASE1(EXECUTION_MODEL, ExecutionModelGLCompute, Shader),
124 CASE1(MEMORY_MODEL, MemoryModelSimple, Shader),
125 CASE1(MEMORY_MODEL, MemoryModelGLSL450, Shader),
143 CASE1(EXECUTION_MODE, ExecutionModePixelCenterInteger, Shader),
144 CASE1(EXECUTION_MODE, ExecutionModeOriginUpperLeft, Shader),
145 CASE1(EXECUTION_MODE, ExecutionModeOriginLowerLeft, Shader),
146 CASE1(EXECUTION_MODE, ExecutionModeEarlyFragmentTests, Shader),
149 CASE1(EXECUTION_MODE, ExecutionModeDepthReplacing, Shader),
[all …]
/external/swiftshader/src/OpenGL/compiler/
DOutputASM.cpp412 sw::PixelShader *Shader::getPixelShader() const in getPixelShader()
417 sw::VertexShader *Shader::getVertexShader() const in getVertexShader()
502 …OutputASM::OutputASM(TParseContext &context, Shader *shaderObject) : TIntermTraverser(true, true, … in OutputASM()
532 Instruction *callMain = emit(sw::Shader::OPCODE_CALL); in output()
533 callMain->dst.type = sw::Shader::PARAMETER_LABEL; in output()
536 emit(sw::Shader::OPCODE_RET); in output()
555 sw::Shader::Opcode OutputASM::getOpcode(sw::Shader::Opcode op, TIntermTyped *in) const in getOpcode()
561 case sw::Shader::OPCODE_NEG: in getOpcode()
566 return sw::Shader::OPCODE_INEG; in getOpcode()
571 case sw::Shader::OPCODE_ABS: in getOpcode()
[all …]
DOutputASM.h29 class Shader; variable
182 class Shader
186 virtual ~Shader() {}; in ~Shader()
187 virtual sw::Shader *getShader() const = 0;
217 typedef sw::Shader::Instruction Instruction;
224 explicit OutputASM(TParseContext &context, Shader *shaderObject);
268 sw::Shader::Opcode getOpcode(sw::Shader::Opcode op, TIntermTyped *in) const;
269 …Instruction *emit(sw::Shader::Opcode op, TIntermTyped *dst = 0, TIntermNode *src0 = 0, TIntermNode…
270 …Instruction *emit(sw::Shader::Opcode op, TIntermTyped *dst, int dstIndex, TIntermNode *src0 = 0, i…
274 …void emitBinary(sw::Shader::Opcode op, TIntermTyped *dst = 0, TIntermNode *src0 = 0, TIntermNode *…
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cEnhancedLayoutsTests.cpp1060 bool checkVarying(Program& program, Shader::STAGES stage, const Variable& variable, std::stringstre… in checkVarying()
1316 bool checkProgramStage(Program& program, const ProgramInterface& program_interface, Utils::Shader::… in checkProgramStage()
1398 …if (false == checkProgramStage(program, program_interface, Shader::COMPUTE, false, false, true, tr… in checkMonolithicComputeProgramInterface()
1420 …if (false == checkProgramStage(program, program_interface, Shader::VERTEX, true, false, true, true… in checkMonolithicDrawProgramInterface()
1438 Utils::Shader::STAGES stage, std::stringstream& stream) in checkSeparableDrawProgramInterface()
2238 const GLuint Shader::m_invalid_id = 0;
2244 Shader::Shader(deqp::Context& context) : m_id(m_invalid_id), m_context(context) in Shader() function in gl4cts::EnhancedLayouts::Utils::Shader
2252 Shader::~Shader() in ~Shader()
2262 void Shader::Init(STAGES stage, const std::string& source) in Init()
2292 void Shader::Release() in Release()
[all …]
Dgl4cEnhancedLayoutsTests.hpp283 class Shader class
322 Shader(deqp::Context& context);
323 ~Shader();
489 static FLAVOUR GetFlavour(Shader::STAGES stage, VARYING_DIRECTION direction);
578 ShaderInterface(Shader::STAGES stage);
598 Shader::STAGES m_stage;
617 void Add(Shader::STAGES stage, Variable* in, Variable* out);
619 VaryingConnection::Vector& Get(Shader::STAGES stage);
640 ShaderInterface& GetShaderInterface(Shader::STAGES stage);
641 const ShaderInterface& GetShaderInterface(Shader::STAGES stage) const;
[all …]
/external/swiftshader/src/OpenGL/libGLESv2/
DShader.cpp29 bool Shader::compilerInitialized = false;
31 Shader::Shader(ResourceManager *manager, GLuint handle) : mHandle(handle), mResourceManager(manager) in Shader() function in es2::Shader
41 Shader::~Shader() in ~Shader()
46 GLuint Shader::getName() const in getName()
51 void Shader::setSource(GLsizei count, const char *const *string, const GLint *length) in setSource()
91 size_t Shader::getInfoLogLength() const in getInfoLogLength()
103 void Shader::getInfoLog(GLsizei bufSize, GLsizei *length, char *infoLogOut) in getInfoLog()
124 size_t Shader::getSourceLength() const in getSourceLength()
136 void Shader::getSource(GLsizei bufSize, GLsizei *length, char *source) in getSource()
157 TranslatorASM *Shader::createCompiler(GLenum shaderType) in createCompiler()
[all …]
DShader.h41 class Shader : public glsl::Shader
46 Shader(ResourceManager *manager, GLuint handle);
48 virtual ~Shader();
92 class VertexShader : public Shader
104 virtual sw::Shader *getShader() const;
114 class FragmentShader : public Shader
123 virtual sw::Shader *getShader() const;
/external/swiftshader/src/
DAndroid.mk83 Shader/Constants.cpp \
84 Shader/PixelPipeline.cpp \
85 Shader/PixelProgram.cpp \
86 Shader/PixelRoutine.cpp \
87 Shader/PixelShader.cpp \
88 Shader/SamplerCore.cpp \
89 Shader/SetupRoutine.cpp \
90 Shader/Shader.cpp \
91 Shader/ShaderCore.cpp \
92 Shader/VertexPipeline.cpp \
[all …]
/external/deqp/modules/gles31/functional/
Des31fProgramInterfaceDefinition.hpp63 class Shader class
74 Shader (glu::ShaderType type, glu::GLSLVersion version);
75 ~Shader (void);
77 Shader (const Shader&);
78 Shader& operator= (const Shader&);
93 Shader* addShader (glu::ShaderType type, glu::GLSLVersion version);
98 const std::vector<Shader*>& getShaders (void) const;
120 std::vector<Shader*> m_shaders;
/external/deqp/framework/referencerenderer/
DrrShaders.hpp202 template<class Shader>
206 VertexShaderLoop (const Shader& shader) : m_shader(shader) {} in VertexShaderLoop()
211 const Shader& m_shader;
214 template<class Shader>
215 void VertexShaderLoop<Shader>::shadeVertices (const VertexAttrib* inputs, VertexPacket* packets, co… in shadeVertices()
221 template<class Shader>
225 FragmentShaderLoop (const Shader& shader) : m_shader(shader) {} in FragmentShaderLoop()
230 const Shader& m_shader;
233 template<class Shader>
234 void FragmentShaderLoop<Shader>::shadeFragments (FragmentPacket* packets, const int numPackets) con… in shadeFragments()
/external/deqp/framework/randomshaders/
DrsgShader.cpp67 Shader::Shader (Type type) in Shader() function in rsg::Shader
73 Shader::~Shader (void) in ~Shader()
81 void Shader::getOutputs (vector<const Variable*>& outputs) const in getOutputs()
93 void Shader::tokenize (GeneratorState& state, TokenStream& str) const in tokenize()
96 if (state.getShader().getType() == Shader::TYPE_FRAGMENT) in tokenize()
115 void Shader::execute (ExecutionContext& execCtx) const in execute()
/external/deqp/executor/tools/
DxeExtractShaderPrograms.cpp53 static const char* getShaderTypeSuffix (const xe::ri::Shader::ShaderType shaderType) in getShaderTypeSuffix()
57 case xe::ri::Shader::SHADERTYPE_VERTEX: return "vert"; in getShaderTypeSuffix()
58 case xe::ri::Shader::SHADERTYPE_FRAGMENT: return "frag"; in getShaderTypeSuffix()
59 case xe::ri::Shader::SHADERTYPE_GEOMETRY: return "geom"; in getShaderTypeSuffix()
60 case xe::ri::Shader::SHADERTYPE_TESS_CONTROL: return "tesc"; in getShaderTypeSuffix()
61 case xe::ri::Shader::SHADERTYPE_TESS_EVALUATION: return "tese"; in getShaderTypeSuffix()
62 case xe::ri::Shader::SHADERTYPE_COMPUTE: return "comp"; in getShaderTypeSuffix()
74 …const xe::ri::Shader& shader = dynamic_cast<const xe::ri::Shader&>(shaderProgram.shaders.getItem(… in writeShaderProgram()
/external/deqp/modules/glshared/
DglsRandomShaderProgram.hpp32 class Shader;
44 …RandomShaderProgram (const rsg::Shader& vertexShader, const rsg::Shader& fragmentShader, int num…
52 const rsg::Shader& m_vertexShader;
53 const rsg::Shader& m_fragmentShader;

12345678910>>...43