nouveau: Get larger push buffers.
Useful to amortize the command submission/reloc overhead (e.g. etracer goes from 72 to 109 FPS on nv4b).
This commit is contained in:
parent
70828aa246
commit
c25fcf5aa5
|
@ -236,7 +236,7 @@ nouveau_screen_init(struct nouveau_screen *screen, struct nouveau_device *dev)
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = nouveau_channel_alloc(dev, 0xbeef0201, 0xbeef0202,
|
ret = nouveau_channel_alloc(dev, 0xbeef0201, 0xbeef0202,
|
||||||
&screen->channel);
|
512*1024, &screen->channel);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
screen->device = dev;
|
screen->device = dev;
|
||||||
|
|
|
@ -128,7 +128,7 @@ nouveau_context_init(GLcontext *ctx, struct nouveau_screen *screen,
|
||||||
|
|
||||||
/* Allocate a hardware channel. */
|
/* Allocate a hardware channel. */
|
||||||
ret = nouveau_channel_alloc(context_dev(ctx), 0xbeef0201, 0xbeef0202,
|
ret = nouveau_channel_alloc(context_dev(ctx), 0xbeef0201, 0xbeef0202,
|
||||||
&nctx->hw.chan);
|
512*1024, &nctx->hw.chan);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
nouveau_error("Error initializing the FIFO.\n");
|
nouveau_error("Error initializing the FIFO.\n");
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
/* Arbitrary pushbuf length we can assume we can get with a single
|
/* Arbitrary pushbuf length we can assume we can get with a single
|
||||||
* WAIT_RING. */
|
* WAIT_RING. */
|
||||||
#define PUSHBUF_DWORDS 2048
|
#define PUSHBUF_DWORDS 65536
|
||||||
|
|
||||||
/* Functions to set up struct nouveau_array_state from something like
|
/* Functions to set up struct nouveau_array_state from something like
|
||||||
* a GL array or index buffer. */
|
* a GL array or index buffer. */
|
||||||
|
|
Loading…
Reference in New Issue