mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
llvmpipe: fix unswizzle of packed float types.
I messed up adding the ubyte->float conversion. This fixes getteximage-formats https://bugs.freedesktop.org/show_bug.cgi?id=42837 Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
579c04e42e
commit
b04d19da10
1 changed files with 2 additions and 2 deletions
|
|
@ -256,12 +256,12 @@ def emit_tile_pixel_unswizzle_code(format, src_channel):
|
|||
if format.name == 'PIPE_FORMAT_R11G11B10_FLOAT':
|
||||
print ' float tmp[3];'
|
||||
for i in range(3):
|
||||
print ' tmp[%d] = (float)TILE_PIXEL(src, x, y, %u);' % (i, inv_swizzle[i])
|
||||
print ' tmp[%d] = ubyte_to_float(TILE_PIXEL(src, x, y, %u));' % (i, inv_swizzle[i])
|
||||
print ' *dst_pixel++ = float3_to_r11g11b10f(tmp);'
|
||||
elif format.name == 'PIPE_FORMAT_R9G9B9E5_FLOAT':
|
||||
print ' float tmp[3];'
|
||||
for i in range(3):
|
||||
print ' tmp[%d] = (float)TILE_PIXEL(src, x, y, %u);' % (i, inv_swizzle[i])
|
||||
print ' tmp[%d] = ubyte_to_float(TILE_PIXEL(src, x, y, %u));' % (i, inv_swizzle[i])
|
||||
print ' *dst_pixel++ = float3_to_rgb9e5(tmp);'
|
||||
elif format.layout == PLAIN:
|
||||
if not format.is_array():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue