Re: [Mesa-dev] [PATCH 09/13] anv: Implement vkCmdDrawIndirectByteCountEXT

2018-10-15 Thread Jason Ekstrand
On Mon, Oct 15, 2018 at 7:06 AM Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > On 13/10/2018 14:09, Jason Ekstrand wrote: > > Annoyingly, this requires that we implement integer division on the > > command streamer. Fortunately, we're only ever dividing by constants so > > we can use

Re: [Mesa-dev] [PATCH 09/13] anv: Implement vkCmdDrawIndirectByteCountEXT

2018-10-15 Thread Lionel Landwerlin
On 13/10/2018 14:09, Jason Ekstrand wrote: Annoyingly, this requires that we implement integer division on the command streamer. Fortunately, we're only ever dividing by constants so we can use the mulh+add+shift trick and it's not as bad as it sounds. --- src/intel/vulkan/anv_device.c |

[Mesa-dev] [PATCH 09/13] anv: Implement vkCmdDrawIndirectByteCountEXT

2018-10-13 Thread Jason Ekstrand
Annoyingly, this requires that we implement integer division on the command streamer. Fortunately, we're only ever dividing by constants so we can use the mulh+add+shift trick and it's not as bad as it sounds. --- src/intel/vulkan/anv_device.c | 2 +- src/intel/vulkan/genX_cmd_buffer.c | 1