summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-12-02 12:54:51 -0800
committerCorbin Simpson <[email protected]>2009-12-02 12:58:15 -0800
commitab7e70fabd17ebab755a41142a783d84570f298e (patch)
treeda50d46551af21818fac8ed5af11fe7c4e8f44e0 /src/gallium
parentf79028bbd4398b1c0f5c34014d8283bd6352aca6 (diff)
radeong: Clean up some bad code.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/winsys/drm/radeon/core/radeon_r300.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_r300.c b/src/gallium/winsys/drm/radeon/core/radeon_r300.c
index e0a45fb67f4..7362279b77a 100644
--- a/src/gallium/winsys/drm/radeon/core/radeon_r300.c
+++ b/src/gallium/winsys/drm/radeon/core/radeon_r300.c
@@ -53,8 +53,7 @@ static boolean radeon_validate(struct radeon_winsys* winsys)
static boolean radeon_check_cs(struct radeon_winsys* winsys, int size)
{
/* XXX check size here, lazy ass! */
- /* XXX also validate buffers */
- return TRUE;
+ return radeon_validate(winsys);
}
static void radeon_begin_cs(struct radeon_winsys* winsys,
@@ -123,16 +122,11 @@ static void radeon_flush_cs(struct radeon_winsys* winsys)
void
radeon_setup_winsys(int fd, struct radeon_winsys* winsys)
{
- /* XXX is this check needed now? */
- if (winsys == NULL) {
- return;
- }
-
struct radeon_winsys_priv* priv = winsys->priv;
priv->csm = radeon_cs_manager_gem_ctor(fd);
- /* XXX there *is* a definite size limit, can't remember it right now */
+ /* Size limit on IBs is 64 kibibytes. */
priv->cs = radeon_cs_create(priv->csm, 1024 * 64 / 4);
radeon_cs_set_limit(priv->cs,
RADEON_GEM_DOMAIN_GTT, winsys->gart_size);