[gtk/wip/chergert/glproto] remove matrix hack
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto] remove matrix hack
- Date: Wed, 17 Feb 2021 01:20:16 +0000 (UTC)
commit ea96d528999549095b2650213f15381a6053666c
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 16 17:20:10 2021 -0800
remove matrix hack
some day, some day
gsk/next/gskglcommandqueue.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 58c7a0f813..4f09946243 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -648,12 +648,13 @@ apply_uniform (gconstpointer dataptr,
break;
case GSK_GL_UNIFORM_FORMAT_MATRIX: {
-#if 0
float mat[16];
graphene_matrix_to_float (dataptr, mat);
-#else
- /* We can avoid the transform to float it seems. Are there
- * any platforms where this does not work?
+ glUniformMatrix4fv (location, 1, GL_FALSE, mat);
+#if 0
+ /* TODO: If Graphene can give us a peek here on platforms
+ * where the format is float[16] (most/all x86_64?) then
+ * We can avoid the SIMD operation to convert the format.
*/
G_STATIC_ASSERT (sizeof (graphene_matrix_t) == 16*4);
glUniformMatrix4fv (location, 1, GL_FALSE, dataptr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]