From a1b7333c07797faea29f50fd49b6c5e877beca0a Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 18 Oct 2010 12:04:57 +1000 Subject: r600g: do proper tracking of views/samplers. we need to do pretty much what r300g does in for this, this fixes some issues seen while working on tiling. --- src/gallium/drivers/r600/r600_pipe.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/r600/r600_pipe.h') diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 35548329e4..e7c4b60d00 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -94,10 +94,12 @@ struct r600_pipe_shader { }; /* needed for blitter save */ +#define NUM_TEX_UNITS 16 + struct r600_textures_info { - struct r600_pipe_sampler_view **views; + struct r600_pipe_sampler_view *views[NUM_TEX_UNITS]; unsigned n_views; - void **samplers; + void *samplers[NUM_TEX_UNITS]; unsigned n_samplers; }; -- cgit v1.2.3