Selaa lähdekoodia

nouveau: more nv30 fixes, still doesn't work as well as before.

tags/mesa_20090313
Stephane Marchesin 17 vuotta sitten
vanhempi
commit
0a653bef05

+ 1
- 1
configs/linux-dri Näytä tiedosto

@@ -66,4 +66,4 @@ WINDOW_SYSTEM=dri

# gamma are missing because they have not been converted to use the new
# interface.
DRI_DIRS = intel_winsys nouveau_winsys
DRI_DIRS = nouveau_winsys

+ 2
- 0
src/mesa/pipe/nv30/nv30_context.c Näytä tiedosto

@@ -71,6 +71,8 @@ nv30_get_paramf(struct pipe_context *pipe, int param)
return 16.0;
case PIPE_CAP_MAX_TEXTURE_LOD_BIAS:
return 4.0;
case PIPE_CAP_BITMAP_TEXCOORD_BIAS:
return 0.0;
default:
NOUVEAU_ERR("Unknown PIPE_CAP %d\n", param);
return 0.0;

+ 2
- 6
src/mesa/pipe/nv30/nv30_state.c Näytä tiedosto

@@ -614,12 +614,8 @@ nv30_set_framebuffer_state(struct pipe_context *pipe,
nv30->rt[1] = rt[1]->buffer;
}

if (zeta_format) {
/* XXX allocate LMA */
/* BEGIN_RING(rankine, NV34TCL_LMA_DEPTH_OFFSET, 1);
OUT_RING(0);*/
BEGIN_RING(rankine, NV34TCL_ZETA_PITCH, 1);
OUT_RING (zeta->pitch * zeta->cpp);
if (zeta_format)
{
nv30->zeta = zeta->buffer;
}


+ 4
- 4
src/mesa/pipe/nv30/nv30_vbo.c Näytä tiedosto

@@ -241,9 +241,9 @@ nv30_draw_elements_u08(struct nv30_context *nv30, void *ib,
}

while (count) {
push = MIN2(count, 2046);
push = MIN2(count, 2047 * 2);

BEGIN_RING_NI(rankine, NV40TCL_VB_ELEMENT_U16, push);
BEGIN_RING_NI(rankine, NV40TCL_VB_ELEMENT_U16, push >> 1);
for (i = 0; i < push; i+=2)
OUT_RING((elts[i+1] << 16) | elts[i]);

@@ -266,9 +266,9 @@ nv30_draw_elements_u16(struct nv30_context *nv30, void *ib,
}

while (count) {
push = MIN2(count, 2046);
push = MIN2(count, 2047 * 2);

BEGIN_RING_NI(rankine, NV34TCL_VB_ELEMENT_U16, push);
BEGIN_RING_NI(rankine, NV34TCL_VB_ELEMENT_U16, push >> 1);
for (i = 0; i < push; i+=2)
OUT_RING((elts[i+1] << 16) | elts[i]);


Loading…
Peruuta
Tallenna