util: allocate larger tmp_row in util_format_translate
authorKeith Whitwell <keithw@vmware.com>
Sun, 30 May 2010 12:26:36 +0000 (13:26 +0100)
committerKeith Whitwell <keithw@vmware.com>
Mon, 7 Jun 2010 15:34:55 +0000 (16:34 +0100)
commitac7c8f7dd3649507f6a5dc4d5222124dd954cbfd
tree63937e3da93a2c2ed847972933c821e3b7f245e5
parent69faf5b48fde9d89b554c75fba7b431ddcd591da
util: allocate larger tmp_row in util_format_translate

The tmp_row storage allocation took into account the format's y block
size by allocating y_step rows of data.  However, the x block size was
not being taken into account when deciding how wide those rows need to
be.

Now make sure that tmp_row is at least x_step by y_step in size.
src/gallium/auxiliary/util/u_format.c