Updated via DRM with check for stray FIRE commands primitive list.

This commit is contained in:
Thomas Hellstrom 2005-01-07 08:21:29 +00:00
parent fcece3cf34
commit ca2b94cfa2
2 changed files with 7 additions and 2 deletions

View file

@ -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;

View file

@ -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;
}