Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View shadeslayer's full-sized avatar
👁️‍🗨️

Rohan Garg shadeslayer

👁️‍🗨️
View GitHub Profile
root@fefc5a7e7034:/app# cd /rootfs-arm64/
root@fefc5a7e7034:/rootfs-arm64# wget https://s3.freedesktop.org/artifacts/shadeslayer/mesa/781424/mesa-arm64.tar.zst
--2023-01-11 15:00:37-- https://s3.freedesktop.org/artifacts/shadeslayer/mesa/781424/mesa-arm64.tar.zst
Resolving s3.freedesktop.org (s3.freedesktop.org)... 147.75.198.157
Connecting to s3.freedesktop.org (s3.freedesktop.org)|147.75.198.157|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14177425 (14M) [application/octet-stream]
Saving to: 'mesa-arm64.tar.zst'
mesa-arm64.tar.zst 100%[========================================================================================================================================>] 13.52M 12.5MB/s in 1.1s
VK-GL-CTS on  change-8884-32 [?]
➜ ninja -C build/vk
ninja: Entering directory `build/vk'
[23/549] Building CXX object external/vulkancts/framework/vulkan/CMakeFiles/vkutil.dir/vkShaderToSpirV.cpp.o
FAILED: external/vulkancts/framework/vulkan/CMakeFiles/vkutil.dir/vkShaderToSpirV.cpp.o
/usr/bin/c++ -DDEQP_HAVE_RENDERDOC_HEADER=1 -DDEQP_SUPPORT_DRM=1 -DDEQP_SUPPORT_X11=1 -DDEQP_TARGET_NAME="\"X11 EGL/GLX\"" -DDE_ASSERT_FAILURE_CALLBACK -DDE_COMPILER=DE_COMPILER_GCC -DDE_CPU=DE_CPU_X86_64 -DDE_DEBUG -DDE_MINGW=0 -DDE_OS=DE_OS_UNIX -DDE_PTR_SIZE=8 -I/home/shadeslayer/src/VK-GL-CTS/framework/delibs/debase -I/home/shadeslayer/src/VK-GL-CTS/framework/delibs/decpp -I/home/shadeslayer/src/VK-GL-CTS/framework/delibs/depool -I/home/shadeslayer/src/VK-GL-CTS/framework/delibs/dethread -I/home/shadeslayer/src/VK-GL-CTS/framework/delibs/deutil -I/home/shadeslayer/src/VK-GL-CTS/framework/delibs/destream -I/home/shadeslayer/src/VK-GL-CTS/external/spirv-headers/src/include -I/home/shadeslayer/src/VK-GL-CTS/extern
Thread 1 "glcts" hit Breakpoint 1, st_GetTexSubImage (ctx=0x7fffec536010, xoffset=0, yoffset=0, zoffset=0, width=400, height=300, depth=1, format=36244, type=5125, pixels=0x7fffe444a010, texImage=0x555559517fb0) at ../src/mesa/state_tracker/st_cb_texture.c:2406
2406 {
(gdb) b iris_transfer_map
Breakpoint 2 at 0x7ffff66e5da1: file ../src/gallium/drivers/iris/iris_resource.c, line 2303.
(gdb) c
Continuing.
Thread 1 "glcts" hit Breakpoint 2, iris_transfer_map (ctx=0x5555593e5390, resource=0x555559518030, level=0, usage=PIPE_MAP_READ, box=0x7fffffffc640, ptransfer=0x7fffffffc768) at ../src/gallium/drivers/iris/iris_resource.c:2303
2303 struct iris_context *ice = (struct iris_context *)ctx;
(gdb) n
➜ INTEL_DEBUG=spill_fs,shaders,ann ~/src/sim-drm/build/sim-drm -a ~/src/sim/DG2/AubLoad -p dg2 ~/src/VK-GL-CTS/build/external/vulkancts/modules/vulkan/deqp-vk -n dEQP-VK.api.smoke.triangle
Writing test log into TestResults.qpa
dEQP Core git-a590d9ab4cd2b0c708b6619c744c13311c32cde1 (0xa590d9ab) starting..
target implementation = 'X11 EGL/GLX'
INFO [GENERAL] DG2 Fulsim Version 220220-53798-DG2 Feb 20 2022 03:27:00
INFO [GENERAL] [x64 Build]
INFO [GENERAL] Fulsim command line: -device dg2.8x4x16.c0 -dumpConfig
WARNING [DEVICE_MNGR] Name "Present Render Command Streamer Ids" is not in the m_CommandStreamersConfigurationMap!
WARNING [DEVICE_MNGR] Name "Present Graphics Security Controller Command Streamer Ids" is not in the m_CommandStreamersConfigurationMap!
Total Runtime: 0.00335515 seconds
Thread 1 "deqp-vk" hit Hardware watchpoint 2: -location cmd_buffer->state.current_pipeline
Old value = 0
New value = 2
0x00007ffff686d305 in gfx12_flush_pipeline_select (cmd_buffer=0x555561f54ee0, pipeline=2) at ../src/intel/vulkan/genX_cmd_buffer.c:6024
6024 cmd_buffer->state.current_pipeline = pipeline;
(gdb) bt
#0 0x00007ffff686d305 in gfx12_flush_pipeline_select (cmd_buffer=0x555561f54ee0, pipeline=2) at ../src/intel/vulkan/genX_cmd_buffer.c:6024
#1 0x00007ffff686d35f in gfx12_flush_pipeline_select_gpgpu (cmd_buffer=0x555561f54ee0) at ../src/intel/vulkan/genX_cmd_buffer.c:6036
#2 0x00007ffff6866580 in gfx12_cmd_buffer_flush_compute_state (cmd_buffer=0x555561f54ee0) at ../src/intel/vulkan/genX_cmd_buffer.c:5223
Thread 1 "deqp-vk" received signal SIGABRT, Aborted.
0x00007ffff789734c in __pthread_kill_implementation () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff789734c in __pthread_kill_implementation () from /usr/lib/libc.so.6
#1 0x00007ffff784a4b8 in raise () from /usr/lib/libc.so.6
#2 0x00007ffff7834534 in abort () from /usr/lib/libc.so.6
#3 0x00007ffff783445c in __assert_fail_base.cold () from /usr/lib/libc.so.6
#4 0x00007ffff7843116 in __assert_fail () from /usr/lib/libc.so.6
#5 0x00007ffff6834609 in gfx12_emit_apply_pipe_flushes (batch=0x55555dd1a108, device=0x555559a39240, current_pipeline=2, bits=ANV_PIPE_PSS_STALL_SYNC_BIT) at ../src/intel/vulkan/genX_cmd_buffer.c:2074
#6 0x00007ffff683b225 in gfx12_cmd_buffer_apply_pipe_flushes (cmd_buffer=0x55555dd19720) at ../src/intel/vulkan/genX_cmd_buffer.c:2374
#0 anv_add_pending_pipe_bits (cmd_buffer=0x55555dd193f0,
bits=(ANV_PIPE_DEPTH_CACHE_FLUSH_BIT | ANV_PIPE_STATE_CACHE_INVALIDATE_BIT | ANV_PIPE_CONSTANT_CACHE_INVALIDATE_BIT | ANV_PIPE_TEXTURE_CACHE_INVALIDATE_BIT | ANV_PIPE_INSTRUCTION_CACHE_INVALIDATE_BIT | ANV_PIPE_RENDER_TARGET_CACHE_FLUSH_BIT | ANV_PIPE_HDC_PIPELINE_FLUSH_BIT | ANV_PIPE_CS_STALL_BIT), reason=0x7ffff71adda0 "flush and invalidate for PIPELINE_SELECT") at ../src/intel/vulkan/anv_private.h:4494
#1 0x00007ffff686c9c7 in gfx12_flush_pipeline_select (cmd_buffer=0x55555dd193f0, pipeline=0) at ../src/intel/vulkan/genX_cmd_buffer.c:5989
#2 0x00007ffff686d4ef in gfx12_flush_pipeline_select_3d (cmd_buffer=0x55555dd193f0) at ../src/intel/vulkan/genX_cmd_buffer.c:6032
#3 0x00007ffff682199b in gfx12_cmd_buffer_emit_state_base_address (cmd_buffer=0x55555dd193f0) at ../src/intel/vulkan/genX_cmd_buffer.c:145
#4 0x00007ffff682dc89 in gfx12_BeginCommandBuffer (commandBuffer=0x55555dd193f0, pBeginInfo=0x7fffffffbef0) at ../src/intel/vulkan/genX_cmd_
#!/usr/bin/env python
# Copyright (c) 2019 Collabora Ltd
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
int drm_dumb_set_label_ioctl(struct drm_device *dev,
void *data, struct drm_file *file_priv)
{
char *label;
struct drm_dumb_set_label_object *args = data;
int ret = 0;
if (!dev->driver->label)
return -EOPNOTSUPP;
/*
* This file is part of Cockpit.
*
* Copyright (C) 2015 Red Hat, Inc.
* Copyright (C) 2018 Rohan Garg <rohan@garg.io>
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.