Giter Site home page Giter Site logo

gl error 1280 on GMA950 about libvdpau-va-gl HOT 6 CLOSED

i-rinat avatar i-rinat commented on August 16, 2024
gl error 1280 on GMA950

from libvdpau-va-gl.

Comments (6)

i-rinat avatar i-rinat commented on August 16, 2024

Which version of mesa do you have? Post here output of glxinfo, please.

from libvdpau-va-gl.

asd963 avatar asd963 commented on August 16, 2024

http://pastebin.com/xcri1f9e

mesa 9.1.4 on archlinux

from libvdpau-va-gl.

i-rinat avatar i-rinat commented on August 16, 2024

I use texture swizzle feature to create single-channel textures. Mesa 8.0.5 just ignored that on gma950, but 9.1.4 reports an error. Anyway texture swizzles are slow and I have plans to use GL shaders, so it will be fixed someday. For now you can try to apply patch below:

diff --git a/vdpau-soft.c b/vdpau-soft.c
index 031003d..18f275c 100644
--- a/vdpau-soft.c
+++ b/vdpau-soft.c
@@ -2110,11 +2110,6 @@ softVdpBitmapSurfaceCreate(VdpDevice device, VdpRGBAFormat rgba_format, uint32_t
         glx_context_pop();
         return VDP_STATUS_ERROR;
     }
-    if (VDP_RGBA_FORMAT_A8 == rgba_format) {
-        // map red channel to alpha
-        GLint swizzle_mask[] = {GL_ONE, GL_ONE, GL_ONE, GL_RED};
-        glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_RGBA, swizzle_mask);
-    }

     gl_error = glGetError();
     glx_context_pop();
@@ -2996,15 +2991,10 @@ softVdpDeviceCreateX11(Display *display_orig, int screen, VdpDevice *device,
     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

-    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_R, GL_ONE);
-    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_G, GL_ONE);
-    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_B, GL_ONE);
-    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_A, GL_RED);
     glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
     glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, watermark_width, watermark_height, 0, GL_RED,
                  GL_UNSIGNED_BYTE, watermark_data);

I haven't tested it. I think, VDP_RGBA_FORMAT_A8 may become broken, it is used for either OSD or subtitles in mplayer.

from libvdpau-va-gl.

asd963 avatar asd963 commented on August 16, 2024

It works, thanks. Flashplayer works a little faster but still is slow, and vdpau in mplayer display only one frame (I'm using xv anyway)

from libvdpau-va-gl.

i-rinat avatar i-rinat commented on August 16, 2024

Flashplayer works a little faster but still is slow

that's because now library does colorspace conversion with libswscale rather than with GL shader. Don't know, will it be faster or not, but that's on the list.

from libvdpau-va-gl.

i-rinat avatar i-rinat commented on August 16, 2024

Fixed in 066f10d and 8326be9

does colorspace conversion with libswscale rather than with GL shader. Don't know, will it be faster or not

BTW, looks like libswscale is faster. On Intel HD4000 shader-based conversion a little bit faster, but on GMA950 + Atom N270, shader conversion three times slower.

from libvdpau-va-gl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.