<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: D3D11 device hung with multiple CS Dispatches in a row. in GPU Compute Software</title>
    <link>https://community.intel.com/t5/GPU-Compute-Software/D3D11-device-hung-with-multiple-CS-Dispatches-in-a-row/m-p/1685682#M1826</link>
    <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;This might help,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How do I use DirectX 11 instead of 12?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Here are the steps:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;OL class=""&gt;&lt;LI&gt;Right-click Computer or This PC and choose Properties.&lt;/LI&gt;&lt;LI&gt;Click Advanced System Settings.&lt;/LI&gt;&lt;LI&gt;Under the Advanced tab, click Environment Variables.&lt;/LI&gt;&lt;LI&gt;Under System Variables, click New.&lt;/LI&gt;&lt;LI&gt;Enter GS_DEVICE for the name and Dx9 for the value (or Dx11 if going down from Dx12).&lt;/LI&gt;&lt;LI&gt;Click OK on all the windows.&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 27 Apr 2025 02:17:58 GMT</pubDate>
    <dc:creator>RAPTORIOUS</dc:creator>
    <dc:date>2025-04-27T02:17:58Z</dc:date>
    <item>
      <title>D3D11 device hung with multiple CS Dispatches in a row.</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/D3D11-device-hung-with-multiple-CS-Dispatches-in-a-row/m-p/1648765#M1662</link>
      <description>&lt;P&gt;I'm running this function multiple times after each other with different input/output targets. If the cs shader doesn't get set to null then re set to the target shader, the device will crash with the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;D3D11 ERROR: ID3D11Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_DEVICE_HUNG: The Device took an unreasonable amount of time to execute its commands, or the hardware crashed/hung. As a result, the TDR (Timeout Detection and Recovery) mechanism has been triggered. The current Device Context was executing commands when the hang occurred. The application may want to respawn and fallback to less aggressive use of the display hardware). [ EXECUTION ERROR #378: DEVICE_REMOVAL_PROCESS_AT_FAULT]
D3D11: **BREAK** enabled for the previous message, which was: [ ERROR EXECUTION #378: DEVICE_REMOVAL_PROCESS_AT_FAULT ]
Exception thrown at 0x00007FFF37D0B699 (KernelBase.dll) in VES.exe: 0x0000087A (parameters: 0x0000000000000001, 0x000000A4C43098F0, 0x000000A4C430B6C0).
Unhandled exception at 0x00007FFF37D0B699 (KernelBase.dll) in VES.exe: 0x0000087A (parameters: 0x0000000000000001, 0x000000A4C43098F0, 0x000000A4C430B6C0).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After this crash, my screen will start randomly blinking to black and will keep blinking until I do a full restart on my computer.&lt;/P&gt;&lt;P&gt;I'm 100% sure it's a driver bug, because this does not happen on a WARP device.&lt;/P&gt;&lt;P&gt;If you need more information I'm happy to provide it.&lt;/P&gt;&lt;P&gt;If you could please tell me ASAP why this crash happens or tell me a workaround I could do in code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: Your website is full of bugs on Firefox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relevant source code:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;void RendererOutputToNV12Tetxure(RendererState* state, TargetableTexture* targetable, NV12Texture* to)
{
    state-&amp;gt;context-&amp;gt;CSSetShaderResources(0, 1, &amp;amp;targetable-&amp;gt;renderable.view);
   
    ID3D11UnorderedAccessView* views[] = { to-&amp;gt;uavY, to-&amp;gt;uavUV };
    state-&amp;gt;context-&amp;gt;CSSetUnorderedAccessViews(0, _countof(views), views, 0);

    //NOTE: Should be set once before batch conversion, but needs to be reset every time because driver bug
    state-&amp;gt;context-&amp;gt;CSSetShader(state-&amp;gt;convertShader, 0, 0);

    UINT threadGroupWidth = 16;
    UINT threadGroupHeight = 8;

    UINT dWidth = ((UINT)targetable-&amp;gt;viewport.Width / 2 + (threadGroupWidth - 1)) / threadGroupWidth;
    UINT dHeight = ((UINT)targetable-&amp;gt;viewport.Height / 2 + (threadGroupHeight - 1)) / threadGroupHeight;

    state-&amp;gt;context-&amp;gt;Dispatch(dWidth, dHeight, 1);

    //NOTE: If it doesn't get unbound driver will crash with device hung. Comment out to reproduce bug.
    state-&amp;gt;context-&amp;gt;CSSetShader(0, 0, 0);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 21:08:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/D3D11-device-hung-with-multiple-CS-Dispatches-in-a-row/m-p/1648765#M1662</guid>
      <dc:creator>Deex_</dc:creator>
      <dc:date>2024-12-11T21:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: D3D11 device hung with multiple CS Dispatches in a row.</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/D3D11-device-hung-with-multiple-CS-Dispatches-in-a-row/m-p/1648813#M1663</link>
      <description>&lt;P&gt;To me it is unclear as to why would a directx11 function call be used on windows 10 machine, as where directx11 is not part of that.&lt;BR /&gt;Windows 8, server 2019, is where directx11 take the stage.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;DirectX 12 is installed is read in the log you provided. There is no mention of directx11, so that must be the reason why it take flight&lt;/P&gt;&lt;P&gt;during the app hang. Perhaps you should install directx11 manually and see what it does in regards to the function call.&lt;BR /&gt;&lt;BR /&gt;RAPTORIOUS OUT&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 01:08:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/D3D11-device-hung-with-multiple-CS-Dispatches-in-a-row/m-p/1648813#M1663</guid>
      <dc:creator>RAPTORIOUS</dc:creator>
      <dc:date>2024-12-12T01:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: D3D11 device hung with multiple CS Dispatches in a row.</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/D3D11-device-hung-with-multiple-CS-Dispatches-in-a-row/m-p/1648923#M1664</link>
      <description>&lt;P&gt;I don't know if you know what the difference between DirectX 11 and DirectX 12 is. On the programming side they are 2 completely different APIs, there is a reason why they are both supported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of that aside tho, if Intel chooses to support DirectX 11, then it should run bug free.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 12:13:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/D3D11-device-hung-with-multiple-CS-Dispatches-in-a-row/m-p/1648923#M1664</guid>
      <dc:creator>Deex_</dc:creator>
      <dc:date>2024-12-12T12:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: D3D11 device hung with multiple CS Dispatches in a row.</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/D3D11-device-hung-with-multiple-CS-Dispatches-in-a-row/m-p/1685682#M1826</link>
      <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;This might help,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How do I use DirectX 11 instead of 12?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Here are the steps:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;OL class=""&gt;&lt;LI&gt;Right-click Computer or This PC and choose Properties.&lt;/LI&gt;&lt;LI&gt;Click Advanced System Settings.&lt;/LI&gt;&lt;LI&gt;Under the Advanced tab, click Environment Variables.&lt;/LI&gt;&lt;LI&gt;Under System Variables, click New.&lt;/LI&gt;&lt;LI&gt;Enter GS_DEVICE for the name and Dx9 for the value (or Dx11 if going down from Dx12).&lt;/LI&gt;&lt;LI&gt;Click OK on all the windows.&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 27 Apr 2025 02:17:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/D3D11-device-hung-with-multiple-CS-Dispatches-in-a-row/m-p/1685682#M1826</guid>
      <dc:creator>RAPTORIOUS</dc:creator>
      <dc:date>2025-04-27T02:17:58Z</dc:date>
    </item>
  </channel>
</rss>

