i965: Stop passing num_samples to intel_miptree_alloc_hiz().
authorPaul Berry <stereotype441@gmail.com>
Thu, 25 Apr 2013 17:57:48 +0000 (10:57 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 30 Apr 2013 20:46:57 +0000 (13:46 -0700)
commitbdf13dc8324c391b7d34f8bdaea72c4452ab7edb
tree4a84104f241a632a54ac5a73770c53a369ea299e
parentd48054ff222ac75241ca74b8e4080261eae9e8e9
i965: Stop passing num_samples to intel_miptree_alloc_hiz().

The number of samples is already available in the miptree data
structure, so there's no need to pass it in.

I suspect this may fix a subtle bug because in one case
(intel_renderbuffer_update_wrapper) we were always passing zero for
num_samples, even though the buffer in question was not guaranteed to
be single-sampled.  But I wasn't able to find a failing test case.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h