From ca2b94cfa2f07c4fd1188d85d8d916318e15e7f2 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Fri, 7 Jan 2005 08:21:29 +0000 Subject: Updated via DRM with check for stray FIRE commands primitive list. --- shared-core/via_drv.h | 4 ++-- shared-core/via_verifier.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'shared-core') diff --git a/shared-core/via_drv.h b/shared-core/via_drv.h index eb75f1ed..05ae40ac 100644 --- a/shared-core/via_drv.h +++ b/shared-core/via_drv.h @@ -28,11 +28,11 @@ #define DRIVER_NAME "via" #define DRIVER_DESC "VIA Unichrome" -#define DRIVER_DATE "20050106" +#define DRIVER_DATE "20050107" #define DRIVER_MAJOR 2 #define DRIVER_MINOR 4 -#define DRIVER_PATCHLEVEL 1 +#define DRIVER_PATCHLEVEL 2 typedef struct drm_via_ring_buffer { drm_map_t map; diff --git a/shared-core/via_verifier.c b/shared-core/via_verifier.c index 534f2604..82a558cc 100644 --- a/shared-core/via_verifier.c +++ b/shared-core/via_verifier.c @@ -576,6 +576,11 @@ via_check_prim_list(uint32_t const **buffer, const uint32_t *buf_end, buf++; break; } + if ((*buf & HALCYON_FIREMASK) == HALCYON_FIRECMD) { + DRM_ERROR("Stray Vertex Fire command encountered.\n"); + ret = 1; + break; + } if ((ret = eat_words(&buf, buf_end, dw_count))) break; } -- cgit v1.2.3