gallivm: set non-existing values really to zero in size queries for d3d10
authorRoland Scheidegger <sroland@vmware.com>
Thu, 8 Aug 2013 15:18:44 +0000 (17:18 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 9 Aug 2013 18:49:19 +0000 (20:49 +0200)
commit894d4903e7325620fa2344ce1640658346b3e75f
treebd53869ca88a3b40cafe64851e55384790c1bf0e
parentb0f74250e1496d4872fd731b45049868b3efc883
gallivm: set non-existing values really to zero in size queries for d3d10

My previous attempt at doing so double-failed miserably (minification of
zero still gives one, and even if it would not the value was never written
anyway).
While here also rename the confusingly named int_vec bld as we have int vecs
of different sizes, and rename need_nr_mips (as this also changes out-of-bounds
behavior) to is_sviewinfo too.

Reviewed-by: Zack Rusin <zackr@vmware.com>
src/gallium/auxiliary/draw/draw_llvm_sample.c
src/gallium/auxiliary/gallivm/lp_bld_sample.h
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
src/gallium/drivers/llvmpipe/lp_tex_sample.c