Code Monkey home page Code Monkey logo

amd_repro's Introduction

Description

I'm getting some crashes when using two renderpasses on an AMD GPU: I draw some content to an image in renderpass 1 and sample it in renderpass 2, rendering it to a swapchain image, all within one command buffer submission.

The main code is in main.c, with my vulkan abstraction layer in rendergraph.c.

Build instructions

cmake -Bbuild .
cmake --build build
./build/repro # run it (linux)
.\build\Debug\repro.exe # run it (windows)

Testing specs

I'm getting these crashes on an RX 5500 XT 8GB.

With validation layers enabled, there are no warnings or error messages, and, curiously, the program does not crash (on both Windows and Linux). The crashes only happen with validation layers disabled.

I've also tested on my Intel laptop and it works fine there. It also works fine with my other Nvidia GPU.

Results from Linux

This is using Linux kernel 5.9 and the RADV vulkan driver, but it also happens with AMDVLK.

Most times I get a completely frozen desktop, sometimes I get VK_ERROR_DEVICE_LOST (error code -4).

Here's an instance of VK_ERROR_DEVICE_LOST (there is no desktop lockup):

Using physical device: AMD RADV NAVI14 (ACO)
amdgpu: The CS has been rejected, see dmesg for more information (-2).
../rendergraph.c:5608 vulkan error: -4

dmesg says:

[  487.910885] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -2!

Results from Windows

This is on Windows 10, using Radeon Software version 20.11.3. Radeon Software also gives me these versions:

Software Version 2020.1125.1407.25415
Driver Version   20.45.01.24-201125a-361677E-RadeonSoftwareAdrenalin2020
Vulkan™ Driver   Version 2.0.168

On Windows, the crash happens only when resizing the window, sometimes taking 2 resizes for it to crash.

Most times I get VK_ERROR_DEVICE_LOST:

Using physical device: Radeon RX 5500 XT
F:\code\c\amd_repro\rendergraph.c:5612 vulkan error: -4

But other times I'll get a driver timeout or a BSOD.

amd_repro's People

Contributors

felipeagc avatar

Stargazers

Erik Reider avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

meowboy326

amd_repro's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.