~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/gallium/auxiliary/util/u_rect.c

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
               unsigned height,
98
98
               union util_color *uc)
99
99
{
 
100
   const struct util_format_description *desc = util_format_description(format);
100
101
   unsigned i, j;
101
102
   unsigned width_size;
102
 
   int blocksize = util_format_get_blocksize(format);
103
 
   int blockwidth = util_format_get_blockwidth(format);
104
 
   int blockheight = util_format_get_blockheight(format);
 
103
   int blocksize = desc->block.bits / 8;
 
104
   int blockwidth = desc->block.width;
 
105
   int blockheight = desc->block.height;
105
106
 
106
107
   assert(blocksize > 0);
107
108
   assert(blockwidth > 0);