i915g: Improve debug output for the fresh-batch overflow case.
Much more useful info for dEQP-GLES2.functional.buffer.write.random.0 than "i915_vbuf_render_draw_elements: Assertion `0' failed." Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13052>
This commit is contained in:
parent
dffe012b09
commit
fcb6beceef
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include "tgsi/tgsi_scan.h"
|
||||
|
||||
#include "util/log.h"
|
||||
#include "util/slab.h"
|
||||
#include "util/u_blitter.h"
|
||||
#include "i915_reg.h"
|
||||
|
|
|
@ -467,6 +467,9 @@ draw_arrays_fallback(struct vbuf_render *render, unsigned start, uint32_t nr)
|
|||
i915->vbo_flushed = 1;
|
||||
|
||||
if (!BEGIN_BATCH(1 + (nr_indices + 1) / 2)) {
|
||||
mesa_loge("i915: Failed to allocate space for %d indices in fresh "
|
||||
"batch with %d bytes left\n",
|
||||
nr_indices, (int)i915_winsys_batchbuffer_space(i915->batch));
|
||||
assert(0);
|
||||
goto out;
|
||||
}
|
||||
|
@ -625,6 +628,9 @@ i915_vbuf_render_draw_elements(struct vbuf_render *render,
|
|||
i915->vbo_flushed = 1;
|
||||
|
||||
if (!BEGIN_BATCH(1 + (nr_indices + 1) / 2)) {
|
||||
mesa_loge("i915: Failed to allocate space for %d indices in fresh "
|
||||
"batch with %d bytes left\n",
|
||||
nr_indices, (int)i915_winsys_batchbuffer_space(i915->batch));
|
||||
assert(0);
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue