mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 10:40:11 +01:00
added pixel_transfer_cache
This commit is contained in:
parent
3e31799640
commit
df174bdb81
2 changed files with 7 additions and 1 deletions
|
|
@ -92,6 +92,8 @@ struct st_context *st_create_context( GLcontext *ctx,
|
|||
|
||||
st->haveFramebufferRegions = GL_TRUE;
|
||||
|
||||
st->pixel_transfer_cache = _mesa_new_program_cache();
|
||||
|
||||
#if 0
|
||||
st_init_cb_clear( st );
|
||||
st_init_cb_program( st );
|
||||
|
|
@ -124,6 +126,8 @@ void st_destroy_context( struct st_context *st )
|
|||
#endif
|
||||
cso_cache_delete( st->cache );
|
||||
|
||||
_mesa_delete_program_cache(st->ctx, st->pixel_transfer_cache);
|
||||
|
||||
st->pipe->destroy( st->pipe );
|
||||
FREE( st );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@
|
|||
#ifndef ST_CONTEXT_H
|
||||
#define ST_CONTEXT_H
|
||||
|
||||
#include "mtypes.h"
|
||||
#include "main/mtypes.h"
|
||||
#include "shader/prog_cache.h"
|
||||
#include "pipe/p_state.h"
|
||||
|
||||
|
||||
|
|
@ -133,6 +134,7 @@ struct st_context
|
|||
struct st_fragment_program *fp; /**< Currently bound fragment program */
|
||||
|
||||
struct gl_fragment_program *pixel_transfer_program;
|
||||
struct gl_program_cache *pixel_transfer_cache;
|
||||
|
||||
/**
|
||||
* Buffer object which stores the ctx->Current.Attrib[] values.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue