aboutsummaryrefslogtreecommitdiff
path: root/shared-core/radeon_drm.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-03-21 16:59:52 +1000
committerDave Airlie <airlied@redhat.com>2008-03-21 16:59:52 +1000
commit36e11dd3801734ff5af9f5edb7aa698f0e2c49c2 (patch)
treef7a9124c0d5b37b29bbc6e1e680728f284d0d1f6 /shared-core/radeon_drm.h
parent316979356f05796c5bd5a47dfc29fe48d6874b49 (diff)
r500: fragment program upload is also used to upload constants.
Limit frag address to 8 bits
Diffstat (limited to 'shared-core/radeon_drm.h')
-rw-r--r--shared-core/radeon_drm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared-core/radeon_drm.h b/shared-core/radeon_drm.h
index 3437320f..c4d9cc6b 100644
--- a/shared-core/radeon_drm.h
+++ b/shared-core/radeon_drm.h
@@ -258,7 +258,7 @@ typedef union {
unsigned char cmd_type, reg, n_bufs, flags;
} scratch;
struct {
- unsigned char cmd_type, count, adrlo, adrhi;
+ unsigned char cmd_type, count, adrlo, adrhi_flags;
} r500fp;
} drm_r300_cmd_header_t;
@@ -270,6 +270,9 @@ typedef union {
#define RADEON_USE_HIERZ 0x40000000
#define RADEON_USE_COMP_ZBUF 0x20000000
+#define R500FP_CONSTANT_TYPE (1 << 1)
+#define R500FP_CONSTANT_CLAMP (1 << 2)
+
/* Primitive types
*/
#define RADEON_POINTS 0x1