Home
last modified time | relevance | path

Searched refs:sampleCnt (Results 1 – 25 of 126) sorted by relevance

123456

/external/skia/src/gpu/mtl/
DGrMtlTextureRenderTarget.mm21 int sampleCnt,
27 , GrMtlRenderTarget(gpu, dimensions, sampleCnt, colorTexture, resolveTexture) {
44 int sampleCnt,
51 , GrMtlRenderTarget(gpu, dimensions, sampleCnt, colorTexture, resolveTexture) {
67 int sampleCnt) {
68 if (!gpu->mtlCaps().isFormatRenderable(format, sampleCnt)) {
78 texDesc.sampleCount = sampleCnt;
92 int sampleCnt,
103 if (sampleCnt > 1) {
105 create_msaa_texture(gpu, dimensions, texture.pixelFormat, sampleCnt);
[all …]
DGrMtlRenderTarget.mm22 int sampleCnt,
27 , GrRenderTarget(gpu, dimensions, sampleCnt, GrProtected::kNo)
30 SkASSERT(sampleCnt > 1);
48 int sampleCnt,
52 , GrRenderTarget(gpu, dimensions, sampleCnt, GrProtected::kNo)
55 SkASSERT(sampleCnt > 1);
66 int sampleCnt,
75 if (sampleCnt > 1) {
78 if (!gpu->mtlCaps().isFormatRenderable(format, sampleCnt)) {
88 texDesc.sampleCount = sampleCnt;
[all …]
DGrMtlTextureRenderTarget.h19 int sampleCnt,
25 int sampleCnt,
47 int sampleCnt,
60 int sampleCnt,
DGrMtlRenderTarget.h26 int sampleCnt,
46 int sampleCnt,
78 int sampleCnt,
/external/skia/tools/gpu/
DBackendSurfaceFactory.cpp21 int sampleCnt, in MakeBackendTextureSurface() argument
41 sampleCnt, in MakeBackendTextureSurface()
52 int sampleCnt, in MakeBackendTextureSurface() argument
60 dContext, ii, origin, sampleCnt, mipMapped, isProtected, props); in MakeBackendTextureSurface()
65 int sampleCnt, in MakeBackendRenderTargetSurface() argument
79 ii.dimensions(), ct, sampleCnt, isProtected); in MakeBackendRenderTargetSurface()
81 SkASSERT(!bert.isValid() || bert.sampleCnt() >= sampleCnt); in MakeBackendRenderTargetSurface()
98 int sampleCnt, in MakeBackendRenderTargetSurface() argument
104 return MakeBackendRenderTargetSurface(dContext, ii, origin, sampleCnt, isProtected, props); in MakeBackendRenderTargetSurface()
DBackendSurfaceFactory.h25 int sampleCnt,
33 int sampleCnt,
44 int sampleCnt,
51 int sampleCnt,
/external/skia/src/gpu/
DGrAttachment.cpp42 int sampleCnt, in build_key() argument
49 SkASSERT(static_cast<uint32_t>(sampleCnt) < (1u << (32 - 9))); in build_key()
58 (static_cast<uint32_t>(sampleCnt) << 9); in build_key()
65 int sampleCnt, in ComputeSharedAttachmentUniqueKey() argument
72 build_key(&builder, caps, format, dimensions, requiredUsage, sampleCnt, mipmapped, isProtected); in ComputeSharedAttachmentUniqueKey()
79 int sampleCnt, in ComputeScratchKey() argument
86 build_key(&builder, caps, format, dimensions, requiredUsage, sampleCnt, mipmapped, isProtected); in ComputeScratchKey()
DGrContextThreadSafeProxy.cpp52 int sampleCnt, GrSurfaceOrigin origin, in createCharacterization() argument
91 if (!fCaps->isFormatAsColorTypeRenderable(grColorType, backendFormat, sampleCnt)) { in createCharacterization()
95 sampleCnt = fCaps->getRenderTargetSampleCount(sampleCnt, backendFormat); in createCharacterization()
96 SkASSERT(sampleCnt); in createCharacterization()
130 origin, sampleCnt, in createCharacterization()
DGrAttachment.h54 int sampleCnt,
65 int sampleCnt,
71 GrAttachment(GrGpu* gpu, SkISize dimensions, UsageFlags supportedUsages, int sampleCnt, in GrAttachment() argument
75 , fSampleCnt(sampleCnt) in GrAttachment()
DGrTexture.cpp106 int sampleCnt, in ComputeScratchKey() argument
112 SkASSERT(sampleCnt > 0); in ComputeScratchKey()
113 SkASSERT(1 == sampleCnt || renderable == GrRenderable::kYes); in ComputeScratchKey()
118 SkASSERT(static_cast<uint32_t>(sampleCnt) < (1 << (32 - 3))); in ComputeScratchKey()
130 | (static_cast<uint32_t>(sampleCnt) << 3); in ComputeScratchKey()
/external/skia/src/gpu/mock/
DGrMockTexture.h85 int sampleCnt, in GrMockRenderTarget() argument
89 , INHERITED(gpu, dimensions, sampleCnt, isProtected) in GrMockRenderTarget()
95 GrMockRenderTarget(GrMockGpu* gpu, Wrapped, SkISize dimensions, int sampleCnt, in GrMockRenderTarget() argument
98 , INHERITED(gpu, dimensions, sampleCnt, isProtected) in GrMockRenderTarget()
139 int sampleCnt, in GrMockRenderTarget() argument
143 , INHERITED(gpu, dimensions, sampleCnt, isProtected) in GrMockRenderTarget()
158 int sampleCnt, in GrMockTextureRenderTarget() argument
165 , GrMockRenderTarget(gpu, dimensions, sampleCnt, isProtected, rtInfo) { in GrMockTextureRenderTarget()
172 int sampleCnt, in GrMockTextureRenderTarget() argument
180 , GrMockRenderTarget(gpu, dimensions, sampleCnt, isProtected, rtInfo) { in GrMockTextureRenderTarget()
/external/skqp/src/gpu/
DGrContextThreadSafeProxy.cpp37 int sampleCnt, GrSurfaceOrigin origin, in createCharacterization() argument
62 sampleCnt = fCaps->getRenderTargetSampleCount(sampleCnt, config); in createCharacterization()
63 if (!sampleCnt) { in createCharacterization()
68 if (sampleCnt > 1) { in createCharacterization()
83 origin, config, FSAAType, sampleCnt, in createCharacterization()
DGrTexture.cpp93 bool isRenderTarget, int sampleCnt, in ComputeScratchKey() argument
99 SkASSERT(sampleCnt > 0); in ComputeScratchKey()
100 SkASSERT(1 == sampleCnt || isRenderTarget); in ComputeScratchKey()
105 SkASSERT(sampleCnt < (1 << 8)); in ComputeScratchKey()
112 builder[2] = config | (static_cast<uint8_t>(mipMapped) << 5) | (sampleCnt << 6) | (flags << 14); in ComputeScratchKey()
DGrBackendSurface.cpp420 int sampleCnt, in GrBackendRenderTarget() argument
423 : GrBackendRenderTarget(width, height, sampleCnt, vkInfo) { in GrBackendRenderTarget()
430 int sampleCnt, in GrBackendRenderTarget() argument
433 : GrBackendRenderTarget(width, height, sampleCnt, vkInfo, in GrBackendRenderTarget()
442 int sampleCnt, in GrBackendRenderTarget() argument
448 , fSampleCnt(SkTMax(1, sampleCnt)) in GrBackendRenderTarget()
458 int sampleCnt, in GrBackendRenderTarget() argument
463 , fSampleCnt(SkTMax(1, sampleCnt)) in GrBackendRenderTarget()
472 int sampleCnt, in GrBackendRenderTarget() argument
477 , fSampleCnt(SkTMax(1, sampleCnt)) in GrBackendRenderTarget()
[all …]
DGrStencilAttachment.h34 static void ComputeSharedStencilAttachmentKey(int width, int height, int sampleCnt,
38 GrStencilAttachment(GrGpu* gpu, int width, int height, int bits, int sampleCnt) in GrStencilAttachment() argument
43 , fSampleCnt(sampleCnt) in GrStencilAttachment()
/external/skia/src/gpu/vk/
DGrVkTextureRenderTarget.cpp54 bool create_rt_attachments(GrVkGpu* gpu, SkISize dimensions, VkFormat format, int sampleCnt, in create_rt_attachments() argument
58 if (sampleCnt > 1) { in create_rt_attachments()
61 dimensions, GrBackendFormat::MakeVk(format), sampleCnt, isProtected); in create_rt_attachments()
80 int sampleCnt, in MakeNewTextureRenderTarget() argument
92 if (!create_rt_attachments(gpu, dimensions, format, sampleCnt, isProtected, texture, in MakeNewTextureRenderTarget()
97 SkASSERT(sampleCnt == 1 || resolveAttachment); in MakeNewTextureRenderTarget()
106 int sampleCnt, in MakeWrappedTextureRenderTarget() argument
129 if (!create_rt_attachments(gpu, dimensions, info.fFormat, sampleCnt, info.fProtected, texture, in MakeWrappedTextureRenderTarget()
134 SkASSERT(sampleCnt == 1 || resolveAttachment); in MakeWrappedTextureRenderTarget()
/external/skqp/tests/
DBlendTest.cpp90 GrContext* context, int sampleCnt, int width, int height, SkColorType colorType, in create_gpu_surface_backend_texture_as_render_target() argument
98 backingDesc.fSampleCnt = sampleCnt; in create_gpu_surface_backend_texture_as_render_target()
111 sampleCnt, colorType, nullptr, nullptr); in create_gpu_surface_backend_texture_as_render_target()
145 for (int sampleCnt : {1, 4}) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
148 testCases.push_back({rectAndPoints, clip, sampleCnt, origin}); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
156 int sampleCnt = testCase.fSampleCnt; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
165 context, sampleCnt, kWidth, kHeight, kColorType, kConfig, origin, &backingSurface); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
167 if (!surface && sampleCnt > 1) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/skia/src/gpu/dawn/
DGrDawnRenderTarget.cpp16 int sampleCnt, in GrDawnRenderTarget() argument
19 , GrRenderTarget(gpu, dimensions, sampleCnt, GrProtected::kNo) in GrDawnRenderTarget()
24 int sampleCnt, in MakeWrapped() argument
26 sk_sp<GrDawnRenderTarget> rt(new GrDawnRenderTarget(gpu, dimensions, sampleCnt, info)); in MakeWrapped()
DGrDawnTexture.cpp24 GrRenderable renderable, int sampleCnt, in Make() argument
44 textureDesc.sampleCount = sampleCnt; in Make()
60 sampleCnt, in Make()
76 GrRenderable renderable, int sampleCnt, in MakeWrapped() argument
84 gpu, dimensions, sampleCnt, info, status)); in MakeWrapped()
/external/skqp/src/image/
DSkSurface_Gpu.cpp386 int sampleCnt, SkColorType ct, sk_sp<SkColorSpace> cs, in validate_backend_texture() argument
410 if (!ctx->contextPriv().caps()->getRenderTargetSampleCount(sampleCnt, *config)) { in validate_backend_texture()
421 GrSurfaceOrigin origin, int sampleCnt, in MakeFromBackendTexture() argument
428 sampleCnt = SkTMax(1, sampleCnt); in MakeFromBackendTexture()
431 sampleCnt, colorType, colorSpace, true)) { in MakeFromBackendTexture()
441 sampleCnt = SkTMax(1, sampleCnt); in MakeFromBackendTexture()
446 sampleCnt, in MakeFromBackendTexture()
477 if (rt.sampleCnt() > 1) { in validate_backend_render_target()
530 int sampleCnt, in MakeFromBackendTextureAsRenderTarget() argument
538 sampleCnt = SkTMax(1, sampleCnt); in MakeFromBackendTextureAsRenderTarget()
[all …]
/external/skqp/include/gpu/
DGrBackendSurface.h265 int sampleCnt,
272 int sampleCnt,
275 GrBackendRenderTarget(int width, int height, int sampleCnt, const GrVkImageInfo& vkInfo);
280 int sampleCnt,
286 int sampleCnt,
297 int sampleCnt() const { return fSampleCnt; } in sampleCnt() function
354 GrBackendRenderTarget(int width, int height, int sampleCnt, const GrVkImageInfo& vkInfo,
/external/skia/src/gpu/d3d/
DGrD3DTextureRenderTarget.cpp103 int sampleCnt, in MakeNewTextureRenderTarget() argument
109 D3D12_RESOURCE_STATES initialState = sampleCnt > 1 ? D3D12_RESOURCE_STATE_RESOLVE_DEST in MakeNewTextureRenderTarget()
132 if (sampleCnt > 1) { in MakeNewTextureRenderTarget()
138 GrD3DTextureResource::CreateMSAA(gpu, dimensions, sampleCnt, info, clearColor); in MakeNewTextureRenderTarget()
158 int sampleCnt, in MakeWrappedTextureRenderTarget() argument
176 if (sampleCnt > 1) { in MakeWrappedTextureRenderTarget()
182 GrD3DTextureResource::CreateMSAA(gpu, dimensions, sampleCnt, info, clearColor); in MakeWrappedTextureRenderTarget()
DGrD3DRenderTarget.cpp92 GrD3DGpu* gpu, SkISize dimensions, int sampleCnt, const GrD3DTextureResourceInfo& info, in MakeWrappedRenderTarget() argument
96 SkASSERT(sampleCnt >= 1 && info.fSampleCount >= 1); in MakeWrappedRenderTarget()
99 if (sampleCnt != wrappedTextureSampleCnt && wrappedTextureSampleCnt != 1) { in MakeWrappedRenderTarget()
108 if (sampleCnt != wrappedTextureSampleCnt) { in MakeWrappedRenderTarget()
114 GrD3DTextureResource::CreateMSAA(gpu, dimensions, sampleCnt, info, clearColor); in MakeWrappedRenderTarget()
/external/skia/tests/
DBlendTest.cpp109 for (int sampleCnt : {1, 4}) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
112 testCases.push_back({rectAndPoints, clip, sampleCnt, origin}); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
120 int sampleCnt = testCase.fSampleCnt; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
130 sampleCnt, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
133 if (!surface && sampleCnt > 1) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/skia/src/image/
DSkSurface_GpuMtl.mm32 int sampleCnt,
76 sampleCnt,
77 sampleCnt > 1 ? GrInternalSurfaceFlags::kRequiresManualMSAAResolve
104 int sampleCnt,
146 sampleCnt,
147 sampleCnt > 1 ? GrInternalSurfaceFlags::kRequiresManualMSAAResolve

123456