[Mesa-dev] nvfx assertion and XvMC state tracker.

Andrew Randrianasulu randrianasulu at gmail.com
Mon Sep 5 20:35:45 PDT 2011


Hello.

Just tested http://repo.or.cz/w/mesa/nouveau-pmpeg.git/ (commit 
25363beccacc70a514045283bbe14951262f7b1f, "nouveau video fixup") with my nv43.

At first, i got only nv40_fragtex.c:50: nv40_sampler_view_init: Assertion 
`tf->fmt[4] >= 0' failed. Then I disabled this assertion, and got some 
purple/black/green image, and few messages in dmesg from PMPEG. Not sure why 
this assertion was put here in the first place, anyone know?

very simple hack:

diff --git a/src/gallium/drivers/nvfx/nv40_fragtex.c 
b/src/gallium/drivers/nvfx/nv40_fragtex.c
index 563183d..1353280 100644
--- a/src/gallium/drivers/nvfx/nv40_fragtex.c
+++ b/src/gallium/drivers/nvfx/nv40_fragtex.c
@@ -47,7 +47,7 @@ nv40_sampler_view_init(struct pipe_context *pipe,
        struct nvfx_texture_format *tf = &nvfx_texture_formats[sv->base.format];
        unsigned txf;
        unsigned level = pt->target == PIPE_TEXTURE_CUBE ? 0 : 
sv->base.u.tex.first_level;
-       assert(tf->fmt[4] >= 0);
+//     assert(tf->fmt[4] >= 0);

        txf = sv->u.init_fmt;
        txf |= 0x8000;

XVMC_VL=1 doesn't work for me, but last I hear it has problems even with nv50.


More information about the mesa-dev mailing list