Skip to content

Commit 749e236

Browse files
authored
ui: fix EGL_BAD_MATCH error when running profile_onroad.py on device (#36608)
fix failed to create EGL image:12297 error on device
1 parent 151d256 commit 749e236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

selfdrive/ui/tests/profile_onroad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def mock_update(timeout=None):
8888
print("Running...")
8989
patch_submaster(message_chunks)
9090

91-
W, H = 1928, 1208
91+
W, H = 2048, 1216
9292
vipc = VisionIpcServer("camerad")
93-
vipc.create_buffers(VisionStreamType.VISION_STREAM_ROAD, 5, 1928, 1208)
93+
vipc.create_buffers(VisionStreamType.VISION_STREAM_ROAD, 5, W, H)
9494
vipc.start_listener()
9595
yuv_buffer_size = W * H + (W // 2) * (H // 2) * 2
9696
yuv_data = np.random.randint(0, 256, yuv_buffer_size, dtype=np.uint8).tobytes()

0 commit comments

Comments
 (0)