v3d: Drop a note for the future about PIPE_CAP_PACKED_UNIFORMS.
authorEric Anholt <eric@anholt.net>
Thu, 11 Apr 2019 18:26:30 +0000 (11:26 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 12 Apr 2019 22:58:28 +0000 (15:58 -0700)
src/gallium/drivers/v3d/v3d_screen.c

index b2fcde6edd21291e4e50e42681a1dea9fd8dd3a7..afac781725a651e886ee9af2353522592b4ccc44 100644 (file)
@@ -133,6 +133,13 @@ v3d_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
         case PIPE_CAP_FRAMEBUFFER_NO_ATTACHMENT:
                 return 1;
 
+        case PIPE_CAP_PACKED_UNIFORMS:
+                /* We can't enable this flag, because it results in load_ubo
+                 * intrinsics across a 16b boundary, but v3d's TMU general
+                 * memory accesses wrap on 16b boundaries.
+                 */
+                return 0;
+
         case PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER:
            return 0;