Skip to content
Snippets Groups Projects
Commit 68af044a authored by Kristian Høgsberg's avatar Kristian Høgsberg Committed by Carl Worth
Browse files

mesa: Remove glClear optimization based on drawable size

A drawable size of 0x0 means that we don't have buffers for a drawable yet,
not that we have a zero-sized buffer.  Core mesa shouldn't be optimizing out
drawing based on buffer size, since the draw call could be what triggers
the driver to go and get buffers.  As discussed in the referenced bug report,
the optimization was added as part of a scatter-shot attempt to fix a
different problem.  There's no other example in mesa core of using the
buffer size in this way.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74005


Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: default avatarKristian Høgsberg <krh@bitplanet.net>
Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 7928b946)
parent 151e7ac3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment