summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/eg_state_inlines.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-03-01 14:55:35 +1000
committerDave Airlie <airlied@redhat.com>2011-03-01 15:08:50 +1000
commit929be6eb95c33d5885a89b36dbc82db64c1344fe (patch)
tree157c587b2de38da0bb2206b8e9fe88f550b02ee1 /src/gallium/drivers/r600/eg_state_inlines.h
parentea4a19c3920a81644138ba84be904b89397dd169 (diff)
r600g: start using drm minor version to enable things.
If the drm minor version is > 9 (i.e. whats in drm-next), we enable s3tc + texture tiling by default now. this changes R600_FORCE_TILING to R600_TILING which can be set to false to disable tiling on working drm. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/drivers/r600/eg_state_inlines.h')
-rw-r--r--src/gallium/drivers/r600/eg_state_inlines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/eg_state_inlines.h b/src/gallium/drivers/r600/eg_state_inlines.h
index b5fcc7106f..cae3888051 100644
--- a/src/gallium/drivers/r600/eg_state_inlines.h
+++ b/src/gallium/drivers/r600/eg_state_inlines.h
@@ -503,9 +503,9 @@ static INLINE uint32_t r600_translate_colorformat(enum pipe_format format)
}
}
-static INLINE boolean r600_is_sampler_format_supported(enum pipe_format format)
+static INLINE boolean r600_is_sampler_format_supported(struct pipe_screen *screen, enum pipe_format format)
{
- return r600_translate_texformat(format, NULL, NULL, NULL) != ~0;
+ return r600_translate_texformat(screen, format, NULL, NULL, NULL) != ~0;
}
static INLINE boolean r600_is_colorbuffer_format_supported(enum pipe_format format)