<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <br>
    <div class="moz-cite-prefix">On 5/8/20 9:32 PM, Henri Verbeet wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOsNvwxZuLwM+CQ5xCrs+mTXiBf_CJ0zuX70rAzAT8ySsUp_FQ@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">On Fri, 8 May 2020 at 22:44, Nikolay Sivov <a class="moz-txt-link-rfc2396E" href="mailto:nsivov@codeweavers.com"><nsivov@codeweavers.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">On 5/8/20 9:10 PM, Henri Verbeet wrote:
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">On Fri, 8 May 2020 at 22:20, Nikolay Sivov <a class="moz-txt-link-rfc2396E" href="mailto:nsivov@codeweavers.com"><nsivov@codeweavers.com></a> wrote:
</pre>
          <blockquote type="cite">
            <pre class="moz-quote-pre" wrap="">On 5/8/20 8:40 PM, Henri Verbeet wrote:
</pre>
            <blockquote type="cite">
              <pre class="moz-quote-pre" wrap="">Does DXGI_USAGE_UNORDERED_ACCESS really need a device created with
D3D11CreateDevice()? (As opposed to e.g. just D3D_FEATURE_LEVEL_11_0.)
</pre>
            </blockquote>
            <pre class="moz-quote-pre" wrap="">D3D10CreateDevice1() doesn't work for me with feature level 11, both
with 10_1 sdk and 11 sdk flag.How do I create this without d3d11 functions?
</pre>
          </blockquote>
          <pre class="moz-quote-pre" wrap="">Maybe it's not possible, and we should validate the feature level in
the d3d10core and d3d10_1 functions. (I don't think we currently do in
Wine.) Still, if it depends on the feature level, D3D11CreateDevice()
with D3D_FEATURE_LEVEL_10_0/D3D_FEATURE_LEVEL_10_1 would not work
either.
</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">I mean I tried on Windows. What we do with in wine is separate from
passing flags through.

Your point is that I should use strict feature level 11 with d3d11 function,
excluding 10.1/10 when creating device? Or is using d3d11 function bad
for some reason?
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
Well, it depends on how it works. If it only works with feature level
11, then yes, we should require that. If it also works with feature
level 10 or 10.1, it seems odd that it would require the device to be
created with D3D11CreateDevice().
</pre>
    </blockquote>
    For device (10.0) used in existing tests it doesn't work, I tried
    that before adding d3d11 one. It returns E_INVALIDARG for UAV flag.<br>
    <br>
    Feature level validation, if it should happen, should already apply
    to CreateTexture2D(<span style="color: rgb(23, 23, 23); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(250, 250, 250); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">D3D11_BIND_UNORDERED_ACCESS),
is there a reason to believe that CreateSurface() is any different? Internally it looks like it takes similar path up to wined3d.
</span><br>
  </body>
</html>