mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 16:18:06 +02:00
added SetStencil/DepthPointer functions
This commit is contained in:
parent
3ba814ae07
commit
c6262cd8c5
2 changed files with 31 additions and 0 deletions
|
|
@ -241,6 +241,22 @@ static void TAG(ReadDepthPixels)( GLcontext *ctx,
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Initialize the given renderbuffer's span routines to point to
|
||||
* the depth/z functions we generated above.
|
||||
*/
|
||||
static void TAG(InitDepthPointers)(struct gl_renderbuffer *rb)
|
||||
{
|
||||
rb->GetRow = TAG(ReadDepthSpan);
|
||||
rb->GetValues = TAG(ReadDepthPixels);
|
||||
rb->PutRow = TAG(WriteDepthSpan);
|
||||
rb->PutRowRGB = NULL;
|
||||
rb->PutMonoRow = TAG(WriteMonoDepthSpan);
|
||||
rb->PutValues = TAG(WriteDepthPixels);
|
||||
rb->PutMonoValues = NULL;
|
||||
}
|
||||
|
||||
|
||||
#if HAVE_HW_DEPTH_SPANS
|
||||
#undef WRITE_DEPTH_SPAN
|
||||
#undef WRITE_DEPTH_PIXELS
|
||||
|
|
|
|||
|
|
@ -176,6 +176,21 @@ static void TAG(ReadStencilPixels)( GLcontext *ctx,
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* Initialize the given renderbuffer's span routines to point to
|
||||
* the stencil functions we generated above.
|
||||
*/
|
||||
static void TAG(InitStencilPointers)(struct gl_renderbuffer *rb)
|
||||
{
|
||||
rb->GetRow = TAG(ReadStencilSpan);
|
||||
rb->GetValues = TAG(ReadStencilPixels);
|
||||
rb->PutRow = TAG(WriteStencilSpan);
|
||||
rb->PutRowRGB = NULL;
|
||||
rb->PutMonoRow = TAG(WriteMonoStencilSpan);
|
||||
rb->PutValues = TAG(WriteStencilPixels);
|
||||
rb->PutMonoValues = NULL;
|
||||
}
|
||||
|
||||
|
||||
#undef WRITE_STENCIL
|
||||
#undef READ_STENCIL
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue