mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
intel: Fallback field is a bitmask, use GLbitfield
This commit is contained in:
parent
f9bbbe5803
commit
ea659f8917
3 changed files with 14 additions and 5 deletions
|
|
@ -1194,12 +1194,16 @@ getFallbackString(GLuint bit)
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* Enable/disable a fallback flag.
|
||||
* \param bit one of INTEL_FALLBACK_x flags.
|
||||
*/
|
||||
void
|
||||
intelFallback(struct intel_context *intel, GLuint bit, GLboolean mode)
|
||||
intelFallback(struct intel_context *intel, GLbitfield bit, GLboolean mode)
|
||||
{
|
||||
GLcontext *ctx = &intel->ctx;
|
||||
TNLcontext *tnl = TNL_CONTEXT(ctx);
|
||||
GLuint oldfallback = intel->Fallback;
|
||||
const GLbitfield oldfallback = intel->Fallback;
|
||||
|
||||
if (mode) {
|
||||
intel->Fallback |= bit;
|
||||
|
|
|
|||
|
|
@ -839,7 +839,7 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
|
|||
_vbo_DestroyContext(&intel->ctx);
|
||||
|
||||
_swrast_DestroyContext(&intel->ctx);
|
||||
intel->Fallback = 0; /* don't call _swrast_Flush later */
|
||||
intel->Fallback = 0x0; /* don't call _swrast_Flush later */
|
||||
|
||||
intel_batchbuffer_free(intel->batch);
|
||||
intel->batch = NULL;
|
||||
|
|
|
|||
|
|
@ -61,6 +61,10 @@ typedef void (*intel_line_func) (struct intel_context *, intelVertex *,
|
|||
intelVertex *);
|
||||
typedef void (*intel_point_func) (struct intel_context *, intelVertex *);
|
||||
|
||||
/**
|
||||
* Bits for intel->Fallback field
|
||||
*/
|
||||
/*@{*/
|
||||
#define INTEL_FALLBACK_DRAW_BUFFER 0x1
|
||||
#define INTEL_FALLBACK_READ_BUFFER 0x2
|
||||
#define INTEL_FALLBACK_DEPTH_BUFFER 0x4
|
||||
|
|
@ -68,8 +72,9 @@ typedef void (*intel_point_func) (struct intel_context *, intelVertex *);
|
|||
#define INTEL_FALLBACK_USER 0x10
|
||||
#define INTEL_FALLBACK_RENDERMODE 0x20
|
||||
#define INTEL_FALLBACK_TEXTURE 0x40
|
||||
/*@}*/
|
||||
|
||||
extern void intelFallback(struct intel_context *intel, GLuint bit,
|
||||
extern void intelFallback(struct intel_context *intel, GLbitfield bit,
|
||||
GLboolean mode);
|
||||
#define FALLBACK( intel, bit, mode ) intelFallback( intel, bit, mode )
|
||||
|
||||
|
|
@ -171,7 +176,7 @@ struct intel_context
|
|||
struct dri_metaops meta;
|
||||
|
||||
GLint refcount;
|
||||
GLuint Fallback;
|
||||
GLbitfield Fallback; /**< mask of INTEL_FALLBACK_x bits */
|
||||
GLuint NewGLState;
|
||||
|
||||
dri_bufmgr *bufmgr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue