<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 --- - r300g: blend sfactor=GL_DST_COLOR fails with FBOs"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=57984">57984</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>r300g: blend sfactor=GL_DST_COLOR fails with FBOs
          </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>stefandoesinger@gmx.at
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>Drivers/Gallium/r300
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=71134" name="attach_71134" title="Screenshot showing the problem.">attachment 71134</a> <a href="attachment.cgi?id=71134&action=edit" title="Screenshot showing the problem.">[details]</a></span>
Screenshot showing the problem.

When running 3DMark2001 on Wine with r300g rendering corruptions are visible in
the load screen and the high quality version of the "lobby" test. Closer
investigation showed that the problem occurs when the game sets the source
blend factor to GL_DST_COLOR and the dest blend factor to GL_ZERO. The blend
function is ADD, separate alpha blending is not used.

If I manually change these parameters to srcfactor=ZERO and
dstfactor=GL_SRC_COLOR, rendering works correctly.

Rendering also works fine when I configure wine not to use FBOs.

I have tried to reproduce this problem with a stand-alone GL application but
have not succeeded in that yet.

I have attached a screenshot. The corruption are the random pixels at the
bottom and right. The horizontal lines are artifacts caused by the
gnome-screenshot tool.

3DMark2001 can be downloaded from
<a href="http://download.freenet.de/3DMark-2001-SE-Windows--4183.xhtml">http://download.freenet.de/3DMark-2001-SE-Windows--4183.xhtml</a> and many other
places.</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>