This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch v-1.29
in repository efl.
View the commit online.
commit 8185d370709b72e39120e214aade10a8a9871f0e
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 22 14:48:16 2026 -0600
evas/gl: write a glyph quad through local array pointers
The byte stores of the six colors made the compiler reload the pipe's
array pointers before every store. Write the vertices, texture
coordinates and colors of a glyph through pointers taken once.
Textgrid tests of expedite on the GL engine, callgrind instructions per
frame, previous commit to this one: fire 19.1M to 16.7M (-13%), terminal
scroll 18.2M to 16.3M (-10%), change -8%, partial -3%, one row +1%.
fps medians: fire +8%, scroll +16%, partial +12% (ranges do not
overlap); change and one row are within noise. The software engine
does not run this code.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../evas/engines/gl_common/evas_gl_context.c | 28 +++++++++++++++++++---
1 file changed, 25 insertions(+), 3 deletions(-)
diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c b/src/modules/evas/engines/gl_common/evas_gl_context.c
index cad6d599b2..c9599592da 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -2639,10 +2639,32 @@ evas_gl_common_context_font_push(Evas_Engine_GL_Context *gc,
ty2 = ((double)(tex->y) + sy + sh) / (double)tex->pt->h;
}
- PUSH_6_VERTICES(pn, x, y, w, h);
- PUSH_6_TEXUV(pn, tx1, ty1, tx2, ty2);
+ /* Through local pointers, the stores need not reload the pipe's arrays
+ * each time, as the byte stores of the colors force them to do. */
+ {
+ GLfloat *vtx = gc->pipe[pn].array.vertex + nv;
+ GLfloat *uv = gc->pipe[pn].array.texuv + nu;
+ GLubyte *col = gc->pipe[pn].array.color + nc;
+ const GLfloat fx1 = x, fy1 = y, fx2 = x + w, fy2 = y + h;
+ const GLfloat u1 = tx1, v1 = ty1, u2 = tx2, v2 = ty2;
+ const GLubyte rgba[4] = { r, g, b, a };
+ int i;
+
+ vtx[0] = fx1; vtx[1] = fy1; vtx[2] = 0;
+ vtx[3] = fx2; vtx[4] = fy1; vtx[5] = 0;
+ vtx[6] = fx1; vtx[7] = fy2; vtx[8] = 0;
+ vtx[9] = fx2; vtx[10] = fy1; vtx[11] = 0;
+ vtx[12] = fx2; vtx[13] = fy2; vtx[14] = 0;
+ vtx[15] = fx1; vtx[16] = fy2; vtx[17] = 0;
+ uv[0] = u1; uv[1] = v1;
+ uv[2] = u2; uv[3] = v1;
+ uv[4] = u1; uv[5] = v2;
+ uv[6] = u2; uv[7] = v1;
+ uv[8] = u2; uv[9] = v2;
+ uv[10] = u1; uv[11] = v2;
+ for (i = 0; i < 6; i++) memcpy(col + (i * 4), rgba, 4);
+ }
PUSH_MASK(pn, mtex, mx, my, mw, mh, masksam);
- PUSH_6_COLORS(pn, r, g, b, a);
}
void
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.