/external/skia/include/gpu/ |
GrRenderTarget.h | 36 * kUnified_SampleConfig signifies multisampling in both color and stencil 38 * kStencil_SampleConfig means multisampling is present in stencil buffer 59 * @return true if the surface is multisampled in the stencil buffer, 68 * multisampled in the stencil buffer only. 78 * @return the number of stencil samples-per-pixel, or zero if non-MSAA. 148 // Checked when this object is asked to attach a stencil buffer. 160 SampleConfig sampleConfig, GrStencilAttachment* stencil = nullptr) 162 , fStencilAttachment(stencil) 178 // stencil attachment.
|
/frameworks/base/libs/hwui/ |
BakedOpRenderer.cpp | 84 if (mRenderTarget.stencil) { 85 // if stencil was used for clipping, detach it and return it to pool 88 mCaches.renderBufferCache.put(mRenderTarget.stencil); 89 mRenderTarget.stencil = nullptr; 137 mRenderState.stencil().enableDebugTest(i + 1, false); 140 mRenderState.stencil().enableDebugTest(4, true); 155 mRenderState.stencil().disable(); 225 // clears and re-fills stencil with provided rendertarget space quads, 226 // and then put stencil into test mode 229 mRenderState.stencil().enableWrite(incrementThreshold) [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/ |
Graphics.java | 97 /** Class describing the bits per pixel, depth buffer precision, stencil precision and number of MSAA samples. */ 101 /* number of bits for depth and stencil buffer */ 102 public final int depth, stencil; field in class:Graphics.BufferFormat 108 public BufferFormat (int r, int g, int b, int a, int depth, int stencil, int samples, boolean coverageSampling) { 114 this.stencil = stencil; 120 return "r: " + r + ", g: " + g + ", b: " + b + ", a: " + a + ", depth: " + depth + ", stencil: " + stencil 265 /** @return the format of the color, depth and stencil buffer in a {@link BufferFormat} instance */
|
/external/mesa3d/src/mesa/swrast/ |
s_stencil.c | 39 /* Stencil Logic: 41 IF stencil test fails THEN 42 Apply fail-op to stencil value 46 Apply zfail-op to stencil value 49 Apply zpass-op to stencil value 57 * Compute/return the offset of the stencil value in a pixel. 58 * For example, if the format is Z24+S8, the position of the stencil bits 83 /** Clamp the stencil value to [0, 255] */ 100 GLubyte s = stencil[j]; \ 102 stencil[j] = (GLubyte) (NEW_VAL); [all...] |
s_zoom.h | 48 const GLubyte stencil[]);
|
/cts/hostsidetests/sustainedperf/shadertoy_android/src/ |
GLtestView.java | 76 public GLtestView(Context context, boolean translucent, int depth, int stencil) {
78 init(translucent, depth, stencil);
81 private void init(boolean translucent, int depth, int stencil) {
103 new ConfigChooser(8, 8, 8, 8, depth, stencil) :
104 new ConfigChooser(5, 6, 5, 0, depth, stencil) );
135 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) {
141 mStencilSize = stencil;
|
/development/ndk/platforms/android-5/samples/hello-gl2/src/com/android/gl2jni/ |
GL2JNIView.java | 76 public GL2JNIView(Context context, boolean translucent, int depth, int stencil) { 78 init(translucent, depth, stencil); 81 private void init(boolean translucent, int depth, int stencil) { 103 new ConfigChooser(8, 8, 8, 8, depth, stencil) : 104 new ConfigChooser(5, 6, 5, 0, depth, stencil) ); 135 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { 141 mStencilSize = stencil;
|
/external/mesa3d/src/gallium/drivers/i915/ |
i915_clear.c | 46 double depth, unsigned stencil, 91 packed_z_stencil = util_pack_z_stencil(depth_tex->b.b.format, depth, stencil); 94 /* Avoid read-modify-write if there's no stencil. */ 114 packed_z_stencil = util_pack_z_stencil(depth_tex->b.b.format, depth, stencil); 222 double depth, unsigned stencil) 225 stencil); 231 double depth, unsigned stencil) 238 i915_clear_emit(pipe, buffers, color, depth, stencil,
|
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/ |
GL2JNIView.java | 65 public GL2JNIView(Context context, boolean translucent, int depth, int stencil) { 67 init(translucent, depth, stencil); 70 private void init(boolean translucent, int depth, int stencil) { 73 new ConfigChooser(8,8,8,8, depth, stencil) : 74 new ConfigChooser(5,6,5,0, depth, stencil)); 112 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { 118 mStencilSize = stencil;
|
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/ |
GLPerfView.java | 65 public GLPerfView(Context context, boolean translucent, int depth, int stencil) { 67 init(translucent, depth, stencil); 70 private void init(boolean translucent, int depth, int stencil) { 73 new ConfigChooser(8,8,8,8, depth, stencil) : 74 new ConfigChooser(5,6,5,0, depth, stencil)); 112 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { 118 mStencilSize = stencil;
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
GLDualGL2View.java | 68 public GLDualGL2View(Context context, boolean translucent, int depth, int stencil) { 70 init(translucent, depth, stencil); 73 private void init(boolean translucent, int depth, int stencil) { 76 new ConfigChooser(8,8,8,8, depth, stencil) : 77 new ConfigChooser(5,6,5,0, depth, stencil)); 115 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { 121 mStencilSize = stencil;
|
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
pp_mlaa.c | 105 mstencil.stencil[0].enabled = 1; 106 mstencil.stencil[0].valuemask = mstencil.stencil[0].writemask = ~0; 107 mstencil.stencil[0].func = PIPE_FUNC_ALWAYS; 108 mstencil.stencil[0].fail_op = PIPE_STENCIL_OP_KEEP; 109 mstencil.stencil[0].zfail_op = PIPE_STENCIL_OP_KEEP; 110 mstencil.stencil[0].zpass_op = PIPE_STENCIL_OP_REPLACE; 141 mstencil.stencil[0].func = PIPE_FUNC_EQUAL; 142 mstencil.stencil[0].zpass_op = PIPE_STENCIL_OP_KEEP;
|
postprocess.h | 55 struct pipe_resource *stencil; /* stencil shared by inner_tmps */ member in struct:pp_queue_t
|
/external/mesa3d/src/mesa/main/ |
pixeltransfer.c | 245 * Apply stencil index shift, offset and table lookup to an array 246 * of stencil values. 250 GLubyte stencil[]) 258 stencil[i] = (stencil[i] << shift) + offset; 264 stencil[i] = (stencil[i] >> shift) + offset; 269 stencil[i] = stencil[i] + offset; 277 stencil[i] = (GLubyte) ctx->PixelMaps.StoS.Map[ stencil[i] & mask ] [all...] |
clear.h | 62 GLfloat depth, GLint stencil);
|
/external/skia/src/gpu/vk/ |
GrVkRenderTarget.cpp | 31 // for the moment we only support 1:1 color to stencil 58 // for the moment we only support 1:1 color to stencil 232 // Stencil attachment view is stored in the base RT stencil attachment 257 const GrStencilAttachment* stencil = this->renderTargetPriv().getStencilAttachment(); local 258 if (stencil) { 259 const GrVkStencilAttachment* vkStencil = static_cast<const GrVkStencilAttachment*>(stencil); 262 // Currently in vulkan stencil and color attachments must all have same number of samples 367 const GrStencilAttachment* stencil = this->renderTargetPriv().getStencilAttachment(); local 368 if (stencil) { 377 const GrStencilAttachment* stencil = this->renderTargetPriv().getStencilAttachment(); local [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
MosaicRendererSurfaceView.java | 51 int depth, int stencil) { 53 initialize(context, translucent, depth, stencil); 56 private void initialize(Context context, boolean translucent, int depth, int stencil) { 58 init(translucent, depth, stencil); 68 private void init(boolean translucent, int depth, int stencil) { 90 translucent ? new ConfigChooser(8, 8, 8, 8, depth, stencil) : 91 new ConfigChooser(5, 6, 5, 0, depth, stencil)); 126 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { 132 mStencilSize = stencil;
|
/external/mesa3d/src/gallium/auxiliary/util/ |
u_surface.h | 80 unsigned stencil,
|
u_simple_shaders.c | 220 * and writes it as depth and stencil, respectively. 230 struct ureg_dst out, depth, stencil; local 252 stencil = ureg_DECL_output( ureg, 264 ureg_writemask(stencil, TGSI_WRITEMASK_Y), 274 * as stencil. 284 struct ureg_dst out, stencil; local 301 stencil = ureg_DECL_output( ureg, 310 ureg_writemask(stencil, TGSI_WRITEMASK_Y), 432 * Make a fragment shader that sets the output stencil to a stencil valu [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_bld_depth.h | 30 * Depth/stencil testing to LLVM IR translation. 60 const struct pipe_stencil_state stencil[2],
|
/external/mesa3d/src/gallium/drivers/nv30/ |
nv30_clear.c | 44 pack_zeta(enum pipe_format format, double depth, unsigned stencil) 48 return (zuint & 0xffffff00) | (stencil & 0xff); 54 const union pipe_color_union *color, double depth, unsigned stencil) 73 zeta = pack_zeta(fb->zsbuf->format, depth, stencil); 157 unsigned buffers, double depth, unsigned stencil, 213 PUSH_DATA (push, pack_zeta(ps->format, depth, stencil));
|
nv30_state.c | 224 if (cso->stencil[0].enabled) { 227 SB_DATA (so, cso->stencil[0].writemask); 228 SB_DATA (so, nvgl_comparison_op(cso->stencil[0].func)); 230 SB_DATA (so, cso->stencil[0].valuemask); 231 SB_DATA (so, nvgl_stencil_op(cso->stencil[0].fail_op)); 232 SB_DATA (so, nvgl_stencil_op(cso->stencil[0].zfail_op)); 233 SB_DATA (so, nvgl_stencil_op(cso->stencil[0].zpass_op)); 240 if (cso->stencil[1].enabled) { 243 SB_DATA (so, cso->stencil[1].writemask); 244 SB_DATA (so, nvgl_comparison_op(cso->stencil[1].func)) [all...] |
/external/mesa3d/src/gallium/drivers/r300/ |
r300_hyperz.c | 34 2. Cannot HiZ if stencil fail or zfail is !KEEP 114 /* if stencil fail/zfail op is not KEEP */ 115 if (r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[0]) || 116 r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[1])) 172 /* Do not set anything if depth and stencil tests are off. */ 174 !dsa->dsa.stencil[0].enabled && 175 !dsa->dsa.stencil[1].enabled) { 234 /* We are interested only in the cases when a depth or stencil value 241 if (r300_dsa_writes_stencil(&dsa->stencil[0]) || 242 r300_dsa_writes_stencil(&dsa->stencil[1]) [all...] |
/external/skia/src/gpu/ |
GrResourceProvider.cpp | 203 GrStencilAttachment* stencil = static_cast<GrStencilAttachment*>( local 205 if (!stencil) { 206 // Need to try and create a new stencil 207 stencil = this->gpu()->createStencilAttachmentForRenderTarget(rt, width, height); 208 if (stencil) { 209 stencil->resourcePriv().setUniqueKey(sbKey); 213 if (rt->renderTargetPriv().attachStencilAttachment(stencil)) { 215 // Right now we're clearing the stencil attachment here after it is 217 // stencil buffers with smaller color targets this will no longer 221 // FBO. But iOS doesn't allow a stencil-only FBO. It reports unsupporte [all...] |
/external/deqp/modules/glshared/ |
glsInteractionTestUtil.cpp | 174 state.stencil[ndx].function = rnd.choose<deUint32>(DE_ARRAY_BEGIN(compareFuncs), DE_ARRAY_END(compareFuncs)); 175 state.stencil[ndx].reference = rnd.getInt(minStencilVal, maxStencilVal); 176 state.stencil[ndx].compareMask = rnd.getUint32(); 177 state.stencil[ndx].stencilFailOp = rnd.choose<deUint32>(DE_ARRAY_BEGIN(stencilOps), DE_ARRAY_END(stencilOps)); 178 state.stencil[ndx].depthFailOp = rnd.choose<deUint32>(DE_ARRAY_BEGIN(stencilOps), DE_ARRAY_END(stencilOps)); 179 state.stencil[ndx].depthPassOp = rnd.choose<deUint32>(DE_ARRAY_BEGIN(stencilOps), DE_ARRAY_END(stencilOps)); 180 state.stencil[ndx].writeMask = rnd.getUint32();
|