[Bug 101596] Blender renders black UI elements

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jul 5 03:41:18 UTC 2017


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

--- Comment #7 from Matias N. Goldberg <dark_sylinc at yahoo.com.ar> ---
As I keep reading the code and getting familiar, everything starts making
sense:

/**
* If a shader can be created when we get its source.
* This means it has only 1 variant, not counting glBitmap and
* glDrawPixels.
*/
boolean shader_has_one_variant[MESA_SHADER_STAGES];

The problem is that after glDrawPixels creates its own variant; st_update_fp
will end up using glDrawPixels' variant, instead of the non-glDrawPixels one.

The same problem happens if glBitmap is used.

One simple solution would be to add the variant to the end of the linked list,
but this may affect the performance profile of radeonsi (i.e. assuming
variations created last are more likely to be used than variations created
first).
The performance concerns can be negated by adding the variation to the end of
the linked list ONLY if glDrawPixels or glBitmap is the caller.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170705/2a70bb48/attachment.html>


More information about the dri-devel mailing list