[gtk/wip/chergert/glproto: 474/493] remove matrix hack




commit 8da06251cbcadcedd7b271b5aa6167e93f2983ae
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]