/external/swiftshader/src/OpenGL/libGLES_CM/ |
D | utilities.cpp | 213 sw::DepthCompareMode ConvertDepthComparison(GLenum comparison) in ConvertDepthComparison() 217 case GL_NEVER: return sw::DEPTH_NEVER; in ConvertDepthComparison() 218 case GL_ALWAYS: return sw::DEPTH_ALWAYS; in ConvertDepthComparison() 219 case GL_LESS: return sw::DEPTH_LESS; in ConvertDepthComparison() 220 case GL_LEQUAL: return sw::DEPTH_LESSEQUAL; in ConvertDepthComparison() 221 case GL_EQUAL: return sw::DEPTH_EQUAL; in ConvertDepthComparison() 222 case GL_GREATER: return sw::DEPTH_GREATER; in ConvertDepthComparison() 223 case GL_GEQUAL: return sw::DEPTH_GREATEREQUAL; in ConvertDepthComparison() 224 case GL_NOTEQUAL: return sw::DEPTH_NOTEQUAL; in ConvertDepthComparison() 228 return sw::DEPTH_ALWAYS; in ConvertDepthComparison() [all …]
|
D | utilities.h | 52 sw::DepthCompareMode ConvertDepthComparison(GLenum comparison); 53 sw::StencilCompareMode ConvertStencilComparison(GLenum comparison); 54 sw::AlphaCompareMode ConvertAlphaComparison(GLenum comparison); 55 sw::Color<float> ConvertColor(es1::Color color); 56 sw::BlendFactor ConvertBlendFunc(GLenum blend); 57 sw::BlendOperation ConvertBlendOp(GLenum blendOp); 58 sw::LogicalOperation ConvertLogicalOperation(GLenum logicalOperation); 59 sw::StencilOperation ConvertStencilOp(GLenum stencilOp); 60 sw::AddressingMode ConvertTextureWrap(GLenum wrap); 61 sw::CullMode ConvertCullMode(GLenum cullFace, GLenum frontFace); [all …]
|
/external/llvm/test/Transforms/SimplifyCFG/X86/ |
D | switch_to_lookup_table.ll | 34 switch i32 %c, label %sw.default [ 36 i32 43, label %sw.bb1 37 i32 44, label %sw.bb2 38 i32 45, label %sw.bb3 39 i32 46, label %sw.bb4 40 i32 47, label %sw.bb5 41 i32 48, label %sw.bb6 44 sw.bb1: br label %return 45 sw.bb2: br label %return 46 sw.bb3: br label %return [all …]
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
D | utilities.cpp | 1217 sw::DepthCompareMode ConvertDepthComparison(GLenum comparison) in ConvertDepthComparison() 1221 case GL_NEVER: return sw::DEPTH_NEVER; in ConvertDepthComparison() 1222 case GL_ALWAYS: return sw::DEPTH_ALWAYS; in ConvertDepthComparison() 1223 case GL_LESS: return sw::DEPTH_LESS; in ConvertDepthComparison() 1224 case GL_LEQUAL: return sw::DEPTH_LESSEQUAL; in ConvertDepthComparison() 1225 case GL_EQUAL: return sw::DEPTH_EQUAL; in ConvertDepthComparison() 1226 case GL_GREATER: return sw::DEPTH_GREATER; in ConvertDepthComparison() 1227 case GL_GEQUAL: return sw::DEPTH_GREATEREQUAL; in ConvertDepthComparison() 1228 case GL_NOTEQUAL: return sw::DEPTH_NOTEQUAL; in ConvertDepthComparison() 1232 return sw::DEPTH_ALWAYS; in ConvertDepthComparison() [all …]
|
D | Framebuffer.cpp | 503 case sw::FORMAT_A8B8G8R8I: in getImplementationColorReadFormat() 504 case sw::FORMAT_A8B8G8R8UI: in getImplementationColorReadFormat() 505 case sw::FORMAT_A16B16G16R16I: in getImplementationColorReadFormat() 506 case sw::FORMAT_A16B16G16R16UI: in getImplementationColorReadFormat() 507 case sw::FORMAT_A32B32G32R32I: in getImplementationColorReadFormat() 508 case sw::FORMAT_A32B32G32R32UI:return GL_RGBA_INTEGER; in getImplementationColorReadFormat() 509 case sw::FORMAT_A2B10G10R10: return GL_RGB10_A2; in getImplementationColorReadFormat() 510 case sw::FORMAT_A8B8G8R8I_SNORM: in getImplementationColorReadFormat() 511 case sw::FORMAT_A16B16G16R16F: in getImplementationColorReadFormat() 512 case sw::FORMAT_A32B32G32R32F: in getImplementationColorReadFormat() [all …]
|
D | Device.hpp | 39 class Device : public sw::Renderer 42 explicit Device(sw::Context *context); 49 …virtual egl::Image *createDepthStencilSurface(unsigned int width, unsigned int height, sw::Format … 50 …virtual egl::Image *createRenderTarget(unsigned int width, unsigned int height, sw::Format format,… 51 …virtual void drawIndexedPrimitive(sw::DrawType type, unsigned int indexOffset, unsigned int primit… 52 virtual void drawPrimitive(sw::DrawType type, unsigned int primiveCount); 53 virtual void setPixelShader(sw::PixelShader *shader); 59 virtual void setScissorRect(const sw::Rect &rect); 60 virtual void setVertexShader(sw::VertexShader *shader); 64 …virtual bool stretchRect(sw::Surface *sourceSurface, const sw::SliceRect *sourceRect, sw::Surface … [all …]
|
/external/swiftshader/src/OpenGL/libGL/ |
D | utilities.cpp | 435 sw::DepthCompareMode ConvertDepthComparison(GLenum comparison) in ConvertDepthComparison() 439 case GL_NEVER: return sw::DEPTH_NEVER; in ConvertDepthComparison() 440 case GL_ALWAYS: return sw::DEPTH_ALWAYS; in ConvertDepthComparison() 441 case GL_LESS: return sw::DEPTH_LESS; in ConvertDepthComparison() 442 case GL_LEQUAL: return sw::DEPTH_LESSEQUAL; in ConvertDepthComparison() 443 case GL_EQUAL: return sw::DEPTH_EQUAL; in ConvertDepthComparison() 444 case GL_GREATER: return sw::DEPTH_GREATER; in ConvertDepthComparison() 445 case GL_GEQUAL: return sw::DEPTH_GREATEREQUAL; in ConvertDepthComparison() 446 case GL_NOTEQUAL: return sw::DEPTH_NOTEQUAL; in ConvertDepthComparison() 450 return sw::DEPTH_ALWAYS; in ConvertDepthComparison() [all …]
|
/external/llvm/test/CodeGen/WebAssembly/ |
D | switch.ll | 41 switch i32 %n, label %sw.epilog [ 42 i32 0, label %sw.bb 43 i32 1, label %sw.bb 44 i32 2, label %sw.bb 45 i32 3, label %sw.bb 46 i32 4, label %sw.bb 47 i32 5, label %sw.bb 48 i32 6, label %sw.bb 49 i32 7, label %sw.bb.1 50 i32 8, label %sw.bb.1 [all …]
|
/external/llvm/test/CodeGen/ARM/ |
D | 2011-08-25-ldmia_ret.ll | 6 ; into sw.bb18 resulting in an ldmia_ret in the middle of the 20 br i1 %call, label %sw.bb18, label %sw.bb2 22 sw.bb2: ; preds = %entry 24 br i1 %cmp, label %sw.epilog58, label %land.lhs.true 26 land.lhs.true: ; preds = %sw.bb2 28 br i1 %cmp13, label %if.then, label %sw.epilog58 32 br label %sw.epilog58 46 sw.bb18: 48 switch i32 %call20, label %sw.default56 [ 49 i32 168, label %sw.bb21 [all …]
|
/external/swiftshader/third_party/LLVM/test/CodeGen/ARM/ |
D | 2011-08-25-ldmia_ret.ll | 6 ; into sw.bb18 resulting in an ldmia_ret in the middle of the 20 br i1 %call, label %sw.bb18, label %sw.bb2 22 sw.bb2: ; preds = %entry 24 br i1 %cmp, label %sw.epilog58, label %land.lhs.true 26 land.lhs.true: ; preds = %sw.bb2 28 br i1 %cmp13, label %if.then, label %sw.epilog58 32 br label %sw.epilog58 46 sw.bb18: 48 switch i32 %call20, label %sw.default56 [ 49 i32 168, label %sw.bb21 [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | switch-edge-weight.ll | 9 switch i32 %x, label %sw.default [ 10 i32 1, label %sw.bb 11 i32 155, label %sw.bb 12 i32 156, label %sw.bb 13 i32 157, label %sw.bb 14 i32 158, label %sw.bb 15 i32 159, label %sw.bb 16 i32 1134, label %sw.bb 17 i32 1140, label %sw.bb 20 sw.bb: [all …]
|
D | switch-bt.ll | 22 switch i32 %conv, label %sw.default [ 23 i32 62, label %sw.bb 24 i32 60, label %sw.bb 25 i32 38, label %sw.bb2 26 i32 94, label %sw.bb2 27 i32 61, label %sw.bb2 28 i32 33, label %sw.bb4 31 sw.bb: ; preds = %entry, %entry 33 br label %sw.epilog 35 sw.bb2: ; preds = %entry, %entry, %entry [all …]
|
/external/swiftshader/src/D3D9/ |
D | Direct3DSurface9.cpp | 30 sw::Resource *getParentResource(Unknown *container) in getParentResource() 253 sw::Lock lock = sw::LOCK_READWRITE; in LockRect() 257 lock = sw::LOCK_DISCARD; in LockRect() 262 lock = sw::LOCK_READONLY; in LockRect() 267 lockedRect->pBits = lockExternal(rect->left, rect->top, 0, lock, sw::PUBLIC); in LockRect() 271 lockedRect->pBits = lockExternal(0, 0, 0, lock, sw::PUBLIC); in LockRect() 332 sw::Format Direct3DSurface9::translateFormat(D3DFORMAT format) in translateFormat() 337 case D3DFMT_NULL: return sw::FORMAT_NULL; in translateFormat() 338 case D3DFMT_DXT1: return sw::FORMAT_DXT1; in translateFormat() 339 case D3DFMT_DXT2: return sw::FORMAT_DXT3; in translateFormat() [all …]
|
D | Direct3DDevice9.cpp | 63 context = new sw::Context(); in Direct3DDevice9() 64 renderer = new sw::Renderer(context, sw::Direct3D, false); in Direct3DDevice9() 399 sw::SliceRect clearRect(rects[i].x1, rects[i].y1, rects[i].x2, rects[i].y2, 0); in Clear() 425 rgba[0] = sw::linearToSRGB(rgba[0]); in Clear() 426 rgba[1] = sw::linearToSRGB(rgba[1]); in Clear() 427 rgba[2] = sw::linearToSRGB(rgba[2]); in Clear() 430 renderer->clear(rgba, sw::FORMAT_A32B32G32R32F, renderTarget[index], clearRect, 0xF); in Clear() 437 z = sw::clamp01(z); in Clear() 571 …8B8, D3DUSAGE_DEPTHSTENCIL, D3DRTYPE_SURFACE, format) != D3D_OK || height > sw::OUTLINE_RESOLUTION) in CreateDepthStencilSurface() 699 if(!sw::PixelShader::validate(function) || function[0] > pixelShaderVersionX) in CreatePixelShader() [all …]
|
/external/llvm/test/CodeGen/Mips/ |
D | jtstat.ll | 12 switch i32 %0, label %sw.epilog [ 13 i32 115, label %sw.bb 14 i32 105, label %sw.bb1 15 i32 100, label %sw.bb2 16 i32 108, label %sw.bb3 17 i32 99, label %sw.bb4 18 i32 68, label %sw.bb5 19 i32 81, label %sw.bb6 20 i32 76, label %sw.bb7 23 sw.bb: ; preds = %entry [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | narrow-switch.ll | 13 ; ALL-NEXT: i32 100, label %sw.bb1 14 ; ALL-NEXT: i32 1001, label %sw.bb2 19 switch i64 %and, label %sw.default [ 21 i64 100, label %sw.bb1 22 i64 1001, label %sw.bb2 25 sw.bb1: 28 sw.bb2: 31 sw.default: 35 %retval.0 = phi i32 [ 24, %sw.default ], [ 123, %sw.bb2 ], [ 213, %sw.bb1 ], [ 231, %entry ] 43 ; ALL-NEXT: i32 -100, label %sw.bb1 [all …]
|
/external/llvm/test/CodeGen/Hexagon/ |
D | pic-jumptables.ll | 10 switch i32 %y, label %sw.epilog [ 11 i32 1, label %sw.bb 12 i32 2, label %sw.bb1 13 i32 3, label %sw.bb2 14 i32 4, label %sw.bb3 15 i32 5, label %sw.bb4 18 sw.bb: ; preds = %entry 20 br label %sw.epilog 22 sw.bb1: ; preds = %entry 24 br label %sw.epilog [all …]
|
/external/llvm/test/Transforms/CodeGenPrepare/X86/ |
D | widen_switch.ll | 10 switch i16 %trunc, label %sw.default [ 11 i16 1, label %sw.bb0 12 i16 -1, label %sw.bb1 15 sw.bb0: 18 sw.bb1: 21 sw.default: 25 %retval = phi i32 [ -1, %sw.default ], [ 0, %sw.bb0 ], [ 1, %sw.bb1 ] 30 ; X86-NEXT: switch i16 %trunc, label %sw.default [ 32 ; X86-NEXT: i16 -1, label %sw.bb1 40 switch i17 %trunc, label %sw.default [ [all …]
|
/external/llvm/test/Transforms/CodeGenPrepare/AArch64/ |
D | widen_switch.ll | 10 switch i16 %trunc, label %sw.default [ 11 i16 1, label %sw.bb0 12 i16 -1, label %sw.bb1 15 sw.bb0: 18 sw.bb1: 21 sw.default: 25 %retval = phi i32 [ -1, %sw.default ], [ 0, %sw.bb0 ], [ 1, %sw.bb1 ] 30 ; ARM64-NEXT: switch i32 %0, label %sw.default [ 32 ; ARM64-NEXT: i32 65535, label %sw.bb1 40 switch i17 %trunc, label %sw.default [ [all …]
|
/external/llvm/test/Instrumentation/SanitizerCoverage/ |
D | switch-tracing.ll | 12 switch i32 %x, label %sw.epilog [ 13 i32 1, label %sw.bb 14 i32 101, label %sw.bb.1 15 i32 1001, label %sw.bb.2 18 sw.bb: ; preds = %entry 20 br label %sw.epilog 22 sw.bb.1: ; preds = %entry 24 br label %sw.epilog 26 sw.bb.2: ; preds = %entry 28 br label %sw.epilog [all …]
|
/external/llvm/test/Transforms/Inline/ |
D | switch.ll | 4 switch i32 %a, label %sw.default [ 5 i32 0, label %sw.bb0 6 i32 1, label %sw.bb1 7 i32 2, label %sw.bb2 8 i32 3, label %sw.bb3 9 i32 4, label %sw.bb4 10 i32 5, label %sw.bb5 11 i32 6, label %sw.bb6 12 i32 7, label %sw.bb7 13 i32 8, label %sw.bb8 [all …]
|
/external/llvm/test/CodeGen/PowerPC/ |
D | pr22711.ll | 13 switch i32 %1, label %sw.epilog [ 14 i32 17, label %sw.bb 15 i32 13, label %sw.bb1 16 i32 11, label %sw.bb2 17 i32 7, label %sw.bb3 18 i32 5, label %sw.bb4 19 i32 3, label %sw.bb5 20 i32 2, label %sw.bb6 23 sw.bb: ; preds = %entry 26 br label %sw.epilog [all …]
|
/external/swiftshader/src/OpenGL/common/ |
D | Image.cpp | 276 const sw::R11G11B10FData *sourceRGB = reinterpret_cast<const sw::R11G11B10FData*>(source); in LoadImageRow() 289 const sw::RGB9E5Data *sourceRGB = reinterpret_cast<const sw::RGB9E5Data*>(source); in LoadImageRow() 308 *dest++ = sw::sRGB8toLinear8(*source++); in LoadImageRow() 323 *dest++ = sw::sRGB8toLinear8(*source++); in LoadImageRow() 423 sw::Format ConvertFormatType(GLenum format, GLenum type) in ConvertFormatType() 430 case GL_UNSIGNED_BYTE: return sw::FORMAT_L8; in ConvertFormatType() 431 case GL_HALF_FLOAT: return sw::FORMAT_L16F; in ConvertFormatType() 432 case GL_HALF_FLOAT_OES: return sw::FORMAT_L16F; in ConvertFormatType() 433 case GL_FLOAT: return sw::FORMAT_L32F; in ConvertFormatType() 438 return sw::FORMAT_L8; in ConvertFormatType() [all …]
|
/external/llvm/test/Transforms/SimplifyCFG/SPARC/ |
D | switch_to_lookup_table.ll | 8 switch i32 %c, label %sw.default [ 10 i32 43, label %sw.bb1 11 i32 44, label %sw.bb2 12 i32 45, label %sw.bb3 13 i32 46, label %sw.bb4 14 i32 47, label %sw.bb5 15 i32 48, label %sw.bb6 18 sw.bb1: br label %return 19 sw.bb2: br label %return 20 sw.bb3: br label %return [all …]
|
/external/llvm/test/Transforms/Util/MemorySSA/ |
D | many-dom-backedge.ll | 14 ; CHECK: 9 = MemoryPhi({entry,liveOnEntry},{sw.epilog,6}) 16 %n = phi i32 [ 0, %entry ], [ %1, %sw.epilog ] 18 switch i32 %n, label %sw.default [ 19 i32 0, label %sw.bb 20 i32 1, label %sw.bb1 21 i32 2, label %sw.bb2 22 i32 3, label %sw.bb3 25 sw.bb: 29 br label %sw.epilog 31 sw.bb1: [all …]
|