i965/draw: Use worst-case VBO bounds if brw->num_instances == 0
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 18 May 2016 19:28:31 +0000 (12:28 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 May 2016 02:12:34 +0000 (19:12 -0700)
commitad3deec8ca9813a746ac833e6a0cc2ed13286c35
treef86802c3c6aaadd337ae466d5656df10c1747113
parent8892519751f5a38e12dd64e3fef3976c53eb9e86
i965/draw: Use worst-case VBO bounds if brw->num_instances == 0

Previously, we only handled the "I don't know what's going on" case for
things with InstanceDivisor == 0.  However, in the DrawIndirect case we can
get num_instances == 0 and we don't know what's going on with the instanced
ones either.  This commit makes the worst-case bound the default and then
conservatively tightens the bound.

Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_draw_upload.c