Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210707
b: refs/heads/master
c: a41ceb1
h: refs/heads/master
i:
  210705: d16f484
  210703: d16a8e5
v: v3
  • Loading branch information
Marek Olšák authored and Dave Airlie committed Sep 13, 2010
1 parent 46b298b commit 8a9cd98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec00efb72f4b88078427d01f38f664c67c7ca0c0
refs/heads/master: a41ceb1c17af06a17c0d88e987215ef20b93c471
11 changes: 6 additions & 5 deletions trunk/drivers/gpu/drm/radeon/r100.c
Original file line number Diff line number Diff line change
Expand Up @@ -3297,13 +3297,14 @@ int r100_cs_track_check(struct radeon_device *rdev, struct r100_cs_track *track)
unsigned long size;
unsigned prim_walk;
unsigned nverts;
unsigned num_cb = track->num_cb;

for (i = 0; i < track->num_cb; i++) {
if (!track->zb_cb_clear && !track->color_channel_mask &&
!track->blend_read_enable)
num_cb = 0;

for (i = 0; i < num_cb; i++) {
if (track->cb[i].robj == NULL) {
if (!(track->zb_cb_clear || track->color_channel_mask ||
track->blend_read_enable)) {
continue;
}
DRM_ERROR("[drm] No buffer for color buffer %d !\n", i);
return -EINVAL;
}
Expand Down

0 comments on commit 8a9cd98

Please sign in to comment.