mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
anv: we never set I915_EXEC_FENCE_OUT
Don't check something that will never be there, just assert() it. Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37559>
This commit is contained in:
parent
5e67acbedc
commit
0c638d08e5
1 changed files with 3 additions and 5 deletions
|
|
@ -677,17 +677,15 @@ anv_gem_execbuffer_impl(struct anv_queue *queue,
|
|||
const char *func, int line)
|
||||
{
|
||||
struct anv_device *device = queue->device;
|
||||
|
||||
int ret;
|
||||
const unsigned long request = (execbuf->flags & I915_EXEC_FENCE_OUT) ?
|
||||
DRM_IOCTL_I915_GEM_EXECBUFFER2_WR :
|
||||
DRM_IOCTL_I915_GEM_EXECBUFFER2;
|
||||
|
||||
assert((execbuf->flags & I915_EXEC_FENCE_OUT) == 0);
|
||||
|
||||
if (unlikely(device->info->no_hw))
|
||||
return VK_SUCCESS;
|
||||
|
||||
do {
|
||||
ret = intel_ioctl(device->fd, request, execbuf);
|
||||
ret = intel_ioctl(device->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf);
|
||||
} while (ret && errno == ENOMEM);
|
||||
|
||||
if (ret)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue