Skip to contentSkip to conversation

tests/kms_ccs: Don't overallocate CCS surface

PATCH In review Daniel Stone 2 participants 2 messages Aug 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/kms_ccs: Don't overallocate CCS surface

Due to a mix-up in kernel branches being used, I'd mangled Jason's original CCS test to hopelessly overallocate the CCS surface size. Restore it back to its original.

Cc Jason Ekstrand <[email protected]>
---
 tests/kms_ccs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/kms_ccs.c +1 -1
index 0524a43e..a40d6c10 100644
@@ -188,7 +188,7 @@ static void display_fb(data_t *data, int compressed)
 		f.pitches[1] = ALIGN(width * 1, 128);
 		f.modifier[1] = modifier;
 		f.offsets[1] = size[0];
-		size[1] = f.pitches[1] * ALIGN(f.height, 32);
+		size[1] = f.pitches[1] * ALIGN(height, 32);
 
 		f.handles[0] = gem_create(data->drm_fd, size[0] + size[1]);
 		f.handles[1] = f.handles[0];
Signature · 6 lines
2.13.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · Daniel Stone

Due to a mix-up in kernel branches being used, I'd mangled Jason's original CCS test to hopelessly overallocate the CCS surface size. Restore it back to its original.

Cc Jason Ekstrand <[email protected]>
---
 tests/kms_ccs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/kms_ccs.c +1 -2
index 0524a43e..a40d6c10 100644
@@ -188,7 +188,7 @@ static void display_fb(data_t *data, int compressed)
                f.pitches[1] = ALIGN(width * 1, 128);
                f.modifier[1] = modifier;
                f.offsets[1] = size[0];
-               size[1] = f.pitches[1] * ALIGN(f.height, 32);
+               size[1] = f.pitches[1] * ALIGN(height, 32);
 
                f.handles[0] = gem_create(data->drm_fd, size[0] + size[1]);
                f.handles[1] = f.handles[0];
--
Quoted 3 lines

2.13.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx