Commits on Source (5)
-
A paint node with 'n' rects damaged by 'm' quads emits 'n*m' OpenGL draw calls. This commit batches the 'n*m' clipped polygons into an indexed triangle strip damage mesh using degenerate triangles. A single draw call per paint node is emitted to reduce API overhead. Fan debug mode is disabled for now and will be added back using batching in the next commits. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
f7a14ba0 -
Reuse fragment shader's compile-time annotation logic in vertex shader for consistency. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
22d9b981 -
Index vertices from the damage mesh as lines and emit a single draw call in fan debug mode. A new shader path and an additional vertex stream are added in order to filter the color of the solid shader variant per sub-mesh. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
23ae2e7f -
There's no fans anymore, so wireframe makes more sense now. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
26a69cb2 -
This makes the code slightly easier to read and prevents using incorrect locations now that shader permutations can provide different vertex streams. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
06436d8a
This diff is collapsed.