summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Daenzer <michel@daenzer.net>2004-01-10 12:28:06 +0000
committerMichel Daenzer <michel@daenzer.net>2004-01-10 12:28:06 +0000
commit7b62ed9aed8794e9efe0059dbf37bc41dc691323 (patch)
tree720f3af48dd088cdc7cd07bab3b982259f79bd1e
parentfb7b802ddaa1440fdba829eff5373c7d9425f582 (diff)
R200_PP_CUBIC_OFFSET_F1_[0-6] state packets only contain 5 offsets, not 6
(thanks to Andreas Stenglein for spotting this)
-rw-r--r--shared-core/radeon_state.c2
-rw-r--r--shared/radeon_state.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/radeon_state.c b/shared-core/radeon_state.c
index e24bee8a..6e026546 100644
--- a/shared-core/radeon_state.c
+++ b/shared-core/radeon_state.c
@@ -110,7 +110,7 @@ static __inline__ int radeon_check_and_fixup_packets( drm_radeon_private_t *dev_
id == R200_PP_CUBIC_OFFSET_F1_2 || id == R200_PP_CUBIC_OFFSET_F1_3 ||
id == R200_PP_CUBIC_OFFSET_F1_4 || id == R200_PP_CUBIC_OFFSET_F1_5 ) {
int i;
- for ( i = 0; i < 6; i++ ) {
+ for ( i = 0; i < 5; i++ ) {
if ( radeon_check_and_fixup_offset_user( dev_priv,
filp_priv,
&data[i] ) ) {
diff --git a/shared/radeon_state.c b/shared/radeon_state.c
index e24bee8a..6e026546 100644
--- a/shared/radeon_state.c
+++ b/shared/radeon_state.c
@@ -110,7 +110,7 @@ static __inline__ int radeon_check_and_fixup_packets( drm_radeon_private_t *dev_
id == R200_PP_CUBIC_OFFSET_F1_2 || id == R200_PP_CUBIC_OFFSET_F1_3 ||
id == R200_PP_CUBIC_OFFSET_F1_4 || id == R200_PP_CUBIC_OFFSET_F1_5 ) {
int i;
- for ( i = 0; i < 6; i++ ) {
+ for ( i = 0; i < 5; i++ ) {
if ( radeon_check_and_fixup_offset_user( dev_priv,
filp_priv,
&data[i] ) ) {