path: root/Development/Documentation
diff options
authorAdam Jackson <>2016-09-26 12:35:24 -0400
committerAdam Jackson <>2016-09-26 12:35:24 -0400
commit9f0dfd8e587f2cdf434d209f3ee7a68101e6bfe0 (patch)
tree22524f07e9b2728f0349c8ad20200626a2043852 /Development/Documentation
parent2ad50a42553db587119228e587849883097349e1 (diff)
composite clip, geometry, spans
Diffstat (limited to 'Development/Documentation')
1 files changed, 18 insertions, 0 deletions
diff --git a/Development/Documentation/GlamorPerformance.mdwn b/Development/Documentation/GlamorPerformance.mdwn
index beae11dc..027c451b 100644
--- a/Development/Documentation/GlamorPerformance.mdwn
+++ b/Development/Documentation/GlamorPerformance.mdwn
@@ -6,6 +6,8 @@ The two bits of core GC state that tend to cause fallbacks are GCFunction and GX
We could probably accelerate both of the above if the GL(SL) below us has something like [[MESA_shader_integer_functions|]] or [[EXT_framebuffer_fetch|]].
+Composite clip walk could likely use [[EXT_window_rectangles|]] instead of glScissor.
### Image ops
PutImage is implemented with TexSubImage2D, so is only accelerated for GXcopy operations. If LogicOp works, you could accelerate this by using a temporary texture and drawing through it to the destination.
@@ -20,10 +22,26 @@ GetImage falls back entirely for XYPixmap, and again, GL very wisely doesn't bel
### Geometry ops
+It's extremely difficult to want to reimplement the arc or polygon code directly in the shader, as neither one sees very much use even in legacy apps. We should profile to make sure the current approach of decomposing to spans on the CPU is "fast enough".
+The rectangle ops are probably about as perfect as they're going to get.
### Text ops
### Span ops
+SetSpans, like PutImage, operates on the texture so can't accelerate non-GXcopy operations.
+FillSpans might benefit from an alternate calling convention, where rather than being passed a span list the caller asks the driver to allocate the span storage, fills that in, then calls Set or Fill. This would let us eliminate the copy into the vbo and just store there directly.
+GetSpans is irrelevant, you can't hit it unless you're using the mi blit routines, and we're not.
## Render
## XVideo