<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Clipping is performed incorrectly when using shaders with intel/nouveau/radeon drivers."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=64668">64668</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clipping is performed incorrectly when using shaders with intel/nouveau/radeon drivers.
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>i.gnatenko.brain@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=79404" name="attach_79404" title="archive with sources to test">attachment 79404</a> <a href="attachment.cgi?id=79404&action=edit" title="archive with sources to test">[details]</a></span>
archive with sources to test

Description of problem:
Clipping is performed incorrectly when using shaders with intel/nouveau/radeon
drivers.

Test to reproduce the bug:
download attachment
tar xvf opengl-clipping-plane-bug.tar.xz
cd opengl-clipping-plane-bug
make
./test
Use SPACE to toggle between shader state (enable/disable).

This simple test draws a quad with vertices coordinates (0,0,0), (640,0,0),
(640,480,0), (0,480,0) and setup a clipping plane with plane equation
coefficients (1,0,0,0), model view is identity.
According to documentation
<a href="http://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml">http://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml</a> all vertices must be
in clipping plane, but when using shaders half of quad is clipped instead.

Version-Release number of selected component (if applicable):
Xorg: 1.14.1-1.fc19.x86_64
mesa: 9.2-0.1.20130508.fc19.x86_64
xorg-x11-drv-intel: 2.21.6-1.fc19.x86_64
xorg-x11-drv-nouveau: 1.0.7-1.fc19.x86_64
and
X.Org X Server 1.12.3
mesa-libGL-8.0.4-1
xorg-x11-drv-intel-2.20.8-1
xorg-x11-drv-nouveau-0.0.16-37

How reproducible:
Always.

Actual results:
Object is half-clipped.
(see screenshot "intel-i915-with-shader.png" "nvidia-Nouveau-with-shader.png")

Expected results:
Object is fully shown.
(see screenshot "amd-Catalyst-with-shader.png" "nvidia-NVIDIA-with-shader.png")</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>