r100.c (dcd6dfcfe959bade75fbf49499775985d2cac5d5) | r100.c (46c64d4bfa01cda7d58c514164f8b127ab6741b7) |
---|---|
1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 2867 unchanged lines hidden (view full) --- 2876{ 2877 unsigned i; 2878 unsigned long size; 2879 unsigned prim_walk; 2880 unsigned nverts; 2881 2882 for (i = 0; i < track->num_cb; i++) { 2883 if (track->cb[i].robj == NULL) { | 1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 2867 unchanged lines hidden (view full) --- 2876{ 2877 unsigned i; 2878 unsigned long size; 2879 unsigned prim_walk; 2880 unsigned nverts; 2881 2882 for (i = 0; i < track->num_cb; i++) { 2883 if (track->cb[i].robj == NULL) { |
2884 if (!(track->fastfill || track->color_channel_mask || 2885 track->blend_read_enable)) { 2886 continue; 2887 } |
|
2884 DRM_ERROR("[drm] No buffer for color buffer %d !\n", i); 2885 return -EINVAL; 2886 } 2887 size = track->cb[i].pitch * track->cb[i].cpp * track->maxy; 2888 size += track->cb[i].offset; 2889 if (size > radeon_bo_size(track->cb[i].robj)) { 2890 DRM_ERROR("[drm] Buffer too small for color buffer %d " 2891 "(need %lu have %lu) !\n", i, size, --- 595 unchanged lines hidden --- | 2888 DRM_ERROR("[drm] No buffer for color buffer %d !\n", i); 2889 return -EINVAL; 2890 } 2891 size = track->cb[i].pitch * track->cb[i].cpp * track->maxy; 2892 size += track->cb[i].offset; 2893 if (size > radeon_bo_size(track->cb[i].robj)) { 2894 DRM_ERROR("[drm] Buffer too small for color buffer %d " 2895 "(need %lu have %lu) !\n", i, size, --- 595 unchanged lines hidden --- |