summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_texture.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-08-09 16:48:45 +0200
committerMarek Olšák <[email protected]>2012-08-15 19:20:57 +0200
commit4b78df9c81f1ca8af2b750616de8ff440e99c3c1 (patch)
treee72a645fcbd3ca594ee8d3ca51449dbb498c48fb /src/gallium/drivers/r600/r600_texture.c
parenta01791add08fbcb5386e0e9209ba21ed58fbdc42 (diff)
r600g: implement MSAA rendering and texturing for evergreen and cayman
Diffstat (limited to 'src/gallium/drivers/r600/r600_texture.c')
-rw-r--r--src/gallium/drivers/r600/r600_texture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index 6460c4fa346..1fdecabc1fb 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -98,8 +98,9 @@ static int r600_init_surface(struct r600_screen *rscreen,
}
}
- surface->nsamples = 1;
+ surface->nsamples = ptex->nr_samples ? ptex->nr_samples : 1;
surface->flags = 0;
+
switch (array_mode) {
case V_038000_ARRAY_1D_TILED_THIN1:
surface->flags |= RADEON_SURF_SET(RADEON_SURF_MODE_1D, MODE);