diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2010-01-18 02:30:49 -0800 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2010-01-18 02:35:08 -0800 |
commit | 0857f38c398bf14526bb47e0c57602be4e7a0ae4 (patch) | |
tree | 7792e5d8a9b0eacd2092b2829e6e7c803a3acc6f /src/gallium/winsys/drm/radeon/core/radeon_drm.h | |
parent | 673ae6266ebf66145bf2bd7d37965f3fe60371d5 (diff) |
radeong: Don't allocate HW BOs for constantbufs.
We have broken 1000 FPS. Hell yes.
Heavily inspired by Marek's patch, but using pipebuffer instead of
a roll-your-own malloc.
Diffstat (limited to 'src/gallium/winsys/drm/radeon/core/radeon_drm.h')
-rw-r--r-- | src/gallium/winsys/drm/radeon/core/radeon_drm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_drm.h b/src/gallium/winsys/drm/radeon/core/radeon_drm.h index 28f2ba818e..ddd7983824 100644 --- a/src/gallium/winsys/drm/radeon/core/radeon_drm.h +++ b/src/gallium/winsys/drm/radeon/core/radeon_drm.h @@ -77,4 +77,13 @@ boolean radeon_global_handle_from_buffer(struct drm_api* api, unsigned* handle); void radeon_destroy_drm_api(struct drm_api* api); + +/* Guess at whether this chipset should use r300g. + * + * I believe that this check is valid, but I haven't been exhaustive. */ +static boolean is_r3xx(int pciid) +{ + return (pciid > 0x3150) && (pciid < 0x796f); +} + #endif |