Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: [AMD11.12] {pack,unpack}Half2x16 Incorrect

  1. #1
    Intern Contributor
    Join Date
    Apr 2010
    Posts
    68

    [AMD11.12] {pack,unpack}Half2x16 Incorrect

    I'm expecting the following shader to draw a triangle accross the screen, but it does not behave that way.
    Code :
    #version 420 core
     
    void main()
    {
    	vec2[] vertices = vec2[](vec2(-1.0),vec2(1.0,-1.0),vec2(0.0,1.0));
    	gl_Position     = vec4(vertices[gl_VertexID],0.0,1.0);
    	uint compressed = packHalf2x16(gl_Position.xy);
    	gl_Position.xy  = unpackHalf2x16(compressed);
    }
    I have attached an image showing the difference between not using the pack/unpack functions (left) and using them (right). AFAIK, the images should be similar.

    Code can be downloaded here (gmake and vs2010 projects are provided).

  2. #2
    Intern Newbie
    Join Date
    Sep 2011
    Posts
    32

    Re: [AMD11.12] {pack,unpack}Half2x16 Incorrect

    I believe it is a driver bug. We are looking into it.
    Senior Engineer, OpenGL driver, AMD

  3. #3
    Intern Contributor
    Join Date
    Apr 2010
    Posts
    68

    Re: [AMD11.12] {pack,unpack}Half2x16 Incorrect

    Issue remains with Catalyst 12.1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •