<div dir="ltr">Will do. </div><br><div class="gmail_quote"><div dir="ltr">On Sat, 25 Feb 2017 at 11:31 Edward O'Callaghan <<a href="mailto:funfunctor@folklore1984.net">funfunctor@folklore1984.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">oh yes I missed that, you want to have drop the negation in your patch Mike.<br class="gmail_msg">
<br class="gmail_msg">
On 02/25/2017 10:28 PM, Mike Lothian wrote:<br class="gmail_msg">
> I think my question regarding the double negative still stands. Is it<br class="gmail_msg">
> "!This->cmst_active" ot "This->cmst_active"<br class="gmail_msg">
><br class="gmail_msg">
> On Sat, 25 Feb 2017 at 11:23 Edward O'Callaghan<br class="gmail_msg">
> <<a href="mailto:funfunctor@folklore1984.net" class="gmail_msg" target="_blank">funfunctor@folklore1984.net</a> <mailto:<a href="mailto:funfunctor@folklore1984.net" class="gmail_msg" target="_blank">funfunctor@folklore1984.net</a>>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
>     From: Mike Lothian <<a href="mailto:mike@fireburn.co.uk" class="gmail_msg" target="_blank">mike@fireburn.co.uk</a> <mailto:<a href="mailto:mike@fireburn.co.uk" class="gmail_msg" target="_blank">mike@fireburn.co.uk</a>>><br class="gmail_msg">
><br class="gmail_msg">
>     This fixes 4a883966c1f74f43afc145d2c3d27af7b8c5e01a where the<br class="gmail_msg">
>     PIPE_CAP was removed.<br class="gmail_msg">
><br class="gmail_msg">
>     Now USER_INDEX_BUFFERS are always enabled remove the check and only<br class="gmail_msg">
>     check for cmst_active directly.<br class="gmail_msg">
><br class="gmail_msg">
>     v2: Axel pointed out the code was still needed when cmst was inactive,<br class="gmail_msg">
>         Rebase on master too<br class="gmail_msg">
>     v3: drop struct member user_ibufs also && fixup shortlog (Edward).<br class="gmail_msg">
><br class="gmail_msg">
>     Fixes: 4a883966c1f7 ("gallium: remove PIPE_CAP_USER_INDEX_BUFFERS")<br class="gmail_msg">
>     Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=99953" rel="noreferrer" class="gmail_msg" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=99953</a><br class="gmail_msg">
>     Reported-and-tested-by: Vinson Lee <<a href="mailto:vlee@freedesktop.org" class="gmail_msg" target="_blank">vlee@freedesktop.org</a><br class="gmail_msg">
>     <mailto:<a href="mailto:vlee@freedesktop.org" class="gmail_msg" target="_blank">vlee@freedesktop.org</a>>> (v1)<br class="gmail_msg">
>     Cc: Marek Olšák <<a href="mailto:marek.olsak@amd.com" class="gmail_msg" target="_blank">marek.olsak@amd.com</a> <mailto:<a href="mailto:marek.olsak@amd.com" class="gmail_msg" target="_blank">marek.olsak@amd.com</a>>><br class="gmail_msg">
>     Cc: Axel Davy <<a href="mailto:axel.davy@ens.fr" class="gmail_msg" target="_blank">axel.davy@ens.fr</a> <mailto:<a href="mailto:axel.davy@ens.fr" class="gmail_msg" target="_blank">axel.davy@ens.fr</a>>><br class="gmail_msg">
>     Signed-off-by: Mike Lothian <<a href="mailto:mike@fireburn.co.uk" class="gmail_msg" target="_blank">mike@fireburn.co.uk</a><br class="gmail_msg">
>     <mailto:<a href="mailto:mike@fireburn.co.uk" class="gmail_msg" target="_blank">mike@fireburn.co.uk</a>>><br class="gmail_msg">
>     Signed-off-by: Edward O'Callaghan <<a href="mailto:funfunctor@folklore1984.net" class="gmail_msg" target="_blank">funfunctor@folklore1984.net</a><br class="gmail_msg">
>     <mailto:<a href="mailto:funfunctor@folklore1984.net" class="gmail_msg" target="_blank">funfunctor@folklore1984.net</a>>><br class="gmail_msg">
>     ---<br class="gmail_msg">
>      src/gallium/state_trackers/nine/device9.c | 3 +--<br class="gmail_msg">
>      src/gallium/state_trackers/nine/device9.h | 1 -<br class="gmail_msg">
>      2 files changed, 1 insertion(+), 3 deletions(-)<br class="gmail_msg">
><br class="gmail_msg">
>     diff --git a/src/gallium/state_trackers/nine/device9.c<br class="gmail_msg">
>     b/src/gallium/state_trackers/nine/device9.c<br class="gmail_msg">
>     index c3924a2..30ab8de 100644<br class="gmail_msg">
>     --- a/src/gallium/state_trackers/nine/device9.c<br class="gmail_msg">
>     +++ b/src/gallium/state_trackers/nine/device9.c<br class="gmail_msg">
>     @@ -473,7 +473,6 @@ NineDevice9_ctor( struct NineDevice9 *This,<br class="gmail_msg">
>          /* Allocate upload helper for drivers that suck (from st pov ;). */<br class="gmail_msg">
><br class="gmail_msg">
>          This->driver_caps.user_vbufs = GET_PCAP(USER_VERTEX_BUFFERS) &&<br class="gmail_msg">
>     !This->csmt_active;<br class="gmail_msg">
>     -    This->driver_caps.user_ibufs = GET_PCAP(USER_INDEX_BUFFERS) &&<br class="gmail_msg">
>     !This->csmt_active;<br class="gmail_msg">
>          This->driver_caps.user_cbufs = GET_PCAP(USER_CONSTANT_BUFFERS);<br class="gmail_msg">
>          This->driver_caps.user_sw_vbufs =<br class="gmail_msg">
>     This->screen_sw->get_param(This->screen_sw,<br class="gmail_msg">
>     PIPE_CAP_USER_VERTEX_BUFFERS);<br class="gmail_msg">
>          This->driver_caps.user_sw_cbufs =<br class="gmail_msg">
>     This->screen_sw->get_param(This->screen_sw,<br class="gmail_msg">
>     PIPE_CAP_USER_CONSTANT_BUFFERS);<br class="gmail_msg">
>     @@ -2896,7 +2895,7 @@ NineDevice9_DrawIndexedPrimitiveUP( struct<br class="gmail_msg">
>     NineDevice9 *This,<br class="gmail_msg">
>              vbuf.buffer_offset -= base;<br class="gmail_msg">
>              vbuf.user_buffer = NULL;<br class="gmail_msg">
>          }<br class="gmail_msg">
>     -    if (!This->driver_caps.user_ibufs) {<br class="gmail_msg">
>     +    if (!This->cmst_active) {<br class="gmail_msg">
>              u_upload_data(This->context.pipe->stream_uploader,<br class="gmail_msg">
>                            0,<br class="gmail_msg">
>                            (prim_count_to_vertex_count(PrimitiveType,<br class="gmail_msg">
>     PrimitiveCount)) * ibuf.index_size,<br class="gmail_msg">
>     diff --git a/src/gallium/state_trackers/nine/device9.h<br class="gmail_msg">
>     b/src/gallium/state_trackers/nine/device9.h<br class="gmail_msg">
>     index 71ebbdc..4b1630c 100644<br class="gmail_msg">
>     --- a/src/gallium/state_trackers/nine/device9.h<br class="gmail_msg">
>     +++ b/src/gallium/state_trackers/nine/device9.h<br class="gmail_msg">
>     @@ -127,7 +127,6 @@ struct NineDevice9<br class="gmail_msg">
><br class="gmail_msg">
>          struct {<br class="gmail_msg">
>              boolean user_vbufs;<br class="gmail_msg">
>     -        boolean user_ibufs;<br class="gmail_msg">
>              boolean user_cbufs;<br class="gmail_msg">
>              boolean user_sw_vbufs;<br class="gmail_msg">
>              boolean user_sw_cbufs;<br class="gmail_msg">
>     --<br class="gmail_msg">
>     2.9.3<br class="gmail_msg">
><br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>