projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
i965: Represent depth surfaces with isl
[mesa.git]
/
src
/
mesa
/
drivers
/
dri
/
nouveau
/
nv04_context.c
diff --git
a/src/mesa/drivers/dri/nouveau/nv04_context.c
b/src/mesa/drivers/dri/nouveau/nv04_context.c
index 6cd191e7a784c8e937aa01d2dc943cbeb8421427..3cc219beab44697cabb78efee6501d0c50c62449 100644
(file)
--- a/
src/mesa/drivers/dri/nouveau/nv04_context.c
+++ b/
src/mesa/drivers/dri/nouveau/nv04_context.c
@@
-37,8
+37,8
@@
texunit_needs_combiners(struct gl_texture_unit *u)
struct gl_texture_object *t = u->_Current;
struct gl_texture_image *ti = t->Image[0][t->BaseLevel];
struct gl_texture_object *t = u->_Current;
struct gl_texture_image *ti = t->Image[0][t->BaseLevel];
- return ti->TexFormat == MESA_FORMAT_A8 ||
- ti->TexFormat == MESA_FORMAT_L8 ||
+ return ti->TexFormat == MESA_FORMAT_A
_UNORM
8 ||
+ ti->TexFormat == MESA_FORMAT_L
_UNORM
8 ||
u->EnvMode == GL_COMBINE ||
u->EnvMode == GL_COMBINE4_NV ||
u->EnvMode == GL_BLEND ||
u->EnvMode == GL_COMBINE ||
u->EnvMode == GL_COMBINE4_NV ||
u->EnvMode == GL_BLEND ||
@@
-53,9
+53,9
@@
nv04_context_engine(struct gl_context *ctx)
struct nouveau_pushbuf *push = context_push(ctx);
struct nouveau_object *fahrenheit;
struct nouveau_pushbuf *push = context_push(ctx);
struct nouveau_object *fahrenheit;
- if ((ctx->Texture.Unit[0]._
ReallyEnabled
&&
+ if ((ctx->Texture.Unit[0]._
Current
&&
texunit_needs_combiners(&ctx->Texture.Unit[0])) ||
texunit_needs_combiners(&ctx->Texture.Unit[0])) ||
- ctx->Texture.Unit[1]._
ReallyEnabled
||
+ ctx->Texture.Unit[1]._
Current
||
ctx->Stencil.Enabled ||
!(ctx->Color.ColorMask[0][RCOMP] &&
ctx->Color.ColorMask[0][GCOMP] &&
ctx->Stencil.Enabled ||
!(ctx->Color.ColorMask[0][RCOMP] &&
ctx->Color.ColorMask[0][GCOMP] &&
@@
-114,7
+114,7
@@
init_dummy_texture(struct gl_context *ctx)
nouveau_surface_alloc(ctx, s, SWIZZLED,
NOUVEAU_BO_MAP | NOUVEAU_BO_VRAM,
nouveau_surface_alloc(ctx, s, SWIZZLED,
NOUVEAU_BO_MAP | NOUVEAU_BO_VRAM,
- MESA_FORMAT_
ARGB8888
, 1, 1);
+ MESA_FORMAT_
B8G8R8A8_UNORM
, 1, 1);
nouveau_bo_map(s->bo, NOUVEAU_BO_WR, context_client(ctx));
*(uint32_t *)s->bo->map = 0xffffffff;
nouveau_bo_map(s->bo, NOUVEAU_BO_WR, context_client(ctx));
*(uint32_t *)s->bo->map = 0xffffffff;
@@
-138,7
+138,8
@@
nv04_context_destroy(struct gl_context *ctx)
}
static struct gl_context *
}
static struct gl_context *
-nv04_context_create(struct nouveau_screen *screen, const struct gl_config *visual,
+nv04_context_create(struct nouveau_screen *screen, gl_api api,
+ const struct gl_config *visual,
struct gl_context *share_ctx)
{
struct nv04_context *nctx;
struct gl_context *share_ctx)
{
struct nv04_context *nctx;
@@
-153,7
+154,7
@@
nv04_context_create(struct nouveau_screen *screen, const struct gl_config *visua
ctx = &nctx->base.base;
hw = &nctx->base.hw;
ctx = &nctx->base.base;
hw = &nctx->base.hw;
- if (!nouveau_context_init(ctx, screen, visual, share_ctx))
+ if (!nouveau_context_init(ctx,
api,
screen, visual, share_ctx))
goto fail;
/* GL constants. */
goto fail;
/* GL constants. */