neuwld

patched neuwld library (tracked)
git clone https://git.daat.foo/neuwld.git
Log | Files | Refs | README | LICENSE

commit d324af4bb24a2a7d415bf26e490b4937867d057b
parent a0c459455f3d82715b13a72fba3611abcca4a57c
Author: Michael Forney <mforney@mforney.org>
Date:   Fri, 31 Jan 2014 04:11:00 -0800

nouveau: Use inline commands when possible

Diffstat:
Mnouveau.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/nouveau.c b/nouveau.c @@ -189,13 +189,13 @@ static bool nvc0_2d_initialize(struct nouveau_renderer * renderer) if (ret != 0) goto error0; - if (!ensure_space(renderer->pushbuf, 6)) + if (!ensure_space(renderer->pushbuf, 4)) goto error1; nvc0_2d(renderer->pushbuf, NV01_SUBCHAN_OBJECT, 1, renderer->nvc0_2d->handle); - nvc0_2d(renderer->pushbuf, NV50_2D_UNK0884, 1, 0x3f); - nvc0_2d(renderer->pushbuf, NV50_2D_UNK0888, 1, 1); + nvc0_2d_inline(renderer->pushbuf, NV50_2D_UNK0884, 0x3f); + nvc0_2d_inline(renderer->pushbuf, NV50_2D_UNK0888, 1); return true; @@ -474,7 +474,7 @@ void renderer_copy_rectangle(struct wld_renderer * base, struct nouveau_buffer * buffer = nouveau_buffer(buffer_base); uint32_t src_format, dst_format; - if (!ensure_space(renderer->pushbuf, 41)) + if (!ensure_space(renderer->pushbuf, 39)) return; src_format = nvc0_format(buffer->base.format); @@ -489,8 +489,8 @@ void renderer_copy_rectangle(struct wld_renderer * base, if (nouveau_pushbuf_validate(renderer->pushbuf) != 0) return; - nvc0_2d(renderer->pushbuf, NV50_GRAPH_SERIALIZE, 1, 0); - nvc0_2d(renderer->pushbuf, NV50_2D_BLIT_CONTROL, 1, 0); + nvc0_2d_inline(renderer->pushbuf, NV50_GRAPH_SERIALIZE, 0); + nvc0_2d_inline(renderer->pushbuf, NV50_2D_BLIT_CONTROL, 0); nvc0_2d(renderer->pushbuf, NV50_2D_BLIT_DST_X, 12, dst_x, dst_y, width, height, 0, 1, 0, 1, 0, src_x, 0, src_y);