mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
framebuffer state
This commit is contained in:
parent
fde755aefb
commit
1119852d02
4 changed files with 19 additions and 1 deletions
|
|
@ -66,6 +66,7 @@ struct pipe_context *softpipe_create( void )
|
|||
struct softpipe_context *softpipe = CALLOC_STRUCT(softpipe_context);
|
||||
|
||||
softpipe->pipe.destroy = softpipe_destroy;
|
||||
softpipe->pipe.set_framebuffer_state = softpipe_set_framebuffer_state;
|
||||
softpipe->pipe.set_clip_state = softpipe_set_clip_state;
|
||||
softpipe->pipe.set_viewport = softpipe_set_viewport;
|
||||
softpipe->pipe.set_setup_state = softpipe_set_setup_state;
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ enum interp_mode {
|
|||
#define G_NEW_CLIP 0x20
|
||||
#define G_NEW_SCISSOR 0x40
|
||||
#define G_NEW_STIPPLE 0x80
|
||||
|
||||
#define G_NEW_FRAMEBUFFER 0x100
|
||||
|
||||
|
||||
struct softpipe_context {
|
||||
|
|
|
|||
|
|
@ -35,6 +35,9 @@
|
|||
#include "pipe/p_state.h"
|
||||
|
||||
|
||||
void softpipe_set_framebuffer_state( struct pipe_context *,
|
||||
const struct pipe_framebuffer_state * );
|
||||
|
||||
void softpipe_set_clip_state( struct pipe_context *,
|
||||
const struct pipe_clip_state * );
|
||||
|
||||
|
|
|
|||
|
|
@ -51,3 +51,17 @@ void softpipe_set_cbuf_state( struct pipe_context *pipe,
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
* XXX this might get moved someday
|
||||
*/
|
||||
void softpipe_set_framebuffer_state( struct pipe_context *pipe,
|
||||
const struct pipe_framebuffer_state *fb )
|
||||
{
|
||||
struct softpipe_context *softpipe = softpipe_context(pipe);
|
||||
|
||||
softpipe->framebuffer = *fb; /* struct copy */
|
||||
|
||||
softpipe->dirty |= G_NEW_FRAMEBUFFER;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue