<?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 Hi Baldur, in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/Crash-in-PSSetShaderResources-with-stencil-view-of-texture/m-p/1063533#M87312</link>
    <description>&lt;P&gt;Hi Baldur,&lt;/P&gt;

&lt;P&gt;Issue is reported and I am working wit the driver team. I will update you when I learn more.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;-Michael&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2016 16:58:57 GMT</pubDate>
    <dc:creator>Michael_C_Intel2</dc:creator>
    <dc:date>2016-09-06T16:58:57Z</dc:date>
    <item>
      <title>Crash in PSSetShaderResources with stencil view of texture</title>
      <link>https://community.intel.com/t5/Graphics/Crash-in-PSSetShaderResources-with-stencil-view-of-texture/m-p/1063532#M87311</link>
      <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;BR /&gt;
	-----------------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;System Used: Intel NUC NUC5i5RYH&lt;BR /&gt;
	CPU SKU: i5-5250U&lt;BR /&gt;
	GPU SKU: HD Graphics 6000&lt;BR /&gt;
	Processor Line: Not sure what this is honestly&lt;BR /&gt;
	System BIOS Version: Can check later if relevant&lt;BR /&gt;
	CMOS settings:&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;Can check later if relevant&lt;/SPAN&gt;&lt;BR /&gt;
	Graphics Driver Version:&amp;nbsp;15.40.25.4463&lt;BR /&gt;
	GOP/VBIOS Version:&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;Can check later if relevant&lt;/SPAN&gt;&lt;BR /&gt;
	Operating System: Windows&lt;BR /&gt;
	OS Version:&amp;nbsp;Windows 10 64-bit&lt;BR /&gt;
	API: D3D11&lt;BR /&gt;
	Occurs on non-Intel GPUs?: No&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Steps to Reproduce:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	1. Create a 2D texture with a typeless depth-stencil format like&amp;nbsp;DXGI_FORMAT_R32G8X24_TYPELESS. Do NOT set&amp;nbsp;D3D11_BIND_DEPTH_STENCIL - only set&amp;nbsp;D3D11_BIND_SHADER_RESOURCE.&lt;BR /&gt;
	2. Create an SRV of the stencil values, in format&amp;nbsp;DXGI_FORMAT_X32_TYPELESS_G8X24_UINT.&lt;BR /&gt;
	3. Copy data into the texture from elsewhere - e.g. another texture that did have the depth-stencil bind flag and was used for rendering.&lt;BR /&gt;
	4. Call PSSetShaderResources to bind the stencil view for reading.&lt;BR /&gt;
	5. Crash occurs inside&amp;nbsp;PSSetShaderResources.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Expected Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;No crash and stencil reading via the green channel.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Actual Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Crash on the CPU inside&amp;nbsp;PSSetShaderResources.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Additional Information:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;I've attached a sample project which reproduces the bug. The source is fairly stripped down, around ~200 lines without shaders. There's also a pre-compiled exe to run. It follows the repro steps above, and renders to a different depth texture with the BIND_DEPTH_STENCIL flag then copies into the texture for the repro.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;At the top of the .cpp there are a couple of toggles you can switch to see where the bug is happening:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;- FORCE_WARP is default 0, but set to 1 it will use the WARP renderer. No crash happens, and the rendering is correct (I don't create a window but this can be verified in a graphics debugger if you need to).&amp;nbsp;ADD_BIND_DEPTH_STENCIL&lt;BR /&gt;
	-&amp;nbsp;ADD_BIND_DEPTH_STENCIL will add the&amp;nbsp;D3D11_BIND_DEPTH_STENCIL bind flag onto the texture. This should not be required - the texture is NOT ever bound to depth-stencil, its data is filled via CopyResource. Only BIND_SHADER_RESOURCE should be needed. Note there are no D3D11 debug layer warnings.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;btw the code also contains a bug repro for another issue -&amp;nbsp;https://software.intel.com/en-us/forums/graphics-driver-bug-reporting/topic/681614 - so you can ignore the code inside&amp;nbsp;clear_uav_test() I just re-used the same code skeleton for both.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Hopefully this is clear enough - let me know if you need more information.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 11:53:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Crash-in-PSSetShaderResources-with-stencil-view-of-texture/m-p/1063532#M87311</guid>
      <dc:creator>Baldur_K_</dc:creator>
      <dc:date>2016-09-03T11:53:25Z</dc:date>
    </item>
    <item>
      <title>Hi Baldur,</title>
      <link>https://community.intel.com/t5/Graphics/Crash-in-PSSetShaderResources-with-stencil-view-of-texture/m-p/1063533#M87312</link>
      <description>&lt;P&gt;Hi Baldur,&lt;/P&gt;

&lt;P&gt;Issue is reported and I am working wit the driver team. I will update you when I learn more.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;-Michael&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 16:58:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Crash-in-PSSetShaderResources-with-stencil-view-of-texture/m-p/1063533#M87312</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2016-09-06T16:58:57Z</dc:date>
    </item>
    <item>
      <title>Hi Baldur,</title>
      <link>https://community.intel.com/t5/Graphics/Crash-in-PSSetShaderResources-with-stencil-view-of-texture/m-p/1063534#M87313</link>
      <description>&lt;P&gt;Hi Baldur,&lt;/P&gt;

&lt;P&gt;We have a fix for your issue and it should be in the next driver release. We were working on a fix already as internal testing had also found it.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;-Michael&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 14:28:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Crash-in-PSSetShaderResources-with-stencil-view-of-texture/m-p/1063534#M87313</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2016-09-08T14:28:32Z</dc:date>
    </item>
  </channel>
</rss>

