Mesa (master): llvmpipe: Update for UTIL_FORMAT_LAYOUT_xxx changes.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Wed Feb 24 16:16:27 UTC 2010
Module: Mesa
Branch: master
Commit: 83686b3f92f29208e35b971c118e179c14e120db
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=83686b3f92f29208e35b971c118e179c14e120db
Author: José Fonseca <jfonseca at vmware.com>
Date: Wed Feb 24 16:10:14 2010 +0000
llvmpipe: Update for UTIL_FORMAT_LAYOUT_xxx changes.
---
src/gallium/drivers/llvmpipe/lp_screen.c | 6 ++----
src/gallium/drivers/llvmpipe/lp_tile_soa.py | 6 +++---
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 0e5750c..1950f14 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -194,8 +194,7 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
format_desc->block.height != 1)
return FALSE;
- if(format_desc->layout != UTIL_FORMAT_LAYOUT_ARITH &&
- format_desc->layout != UTIL_FORMAT_LAYOUT_ARRAY)
+ if(format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN)
return FALSE;
if(format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB &&
@@ -223,8 +222,7 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
format_desc->block.height != 1)
return FALSE;
- if(format_desc->layout != UTIL_FORMAT_LAYOUT_ARITH &&
- format_desc->layout != UTIL_FORMAT_LAYOUT_ARRAY)
+ if(format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN)
return FALSE;
if(format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB &&
diff --git a/src/gallium/drivers/llvmpipe/lp_tile_soa.py b/src/gallium/drivers/llvmpipe/lp_tile_soa.py
index 0b9631f..a66a846 100644
--- a/src/gallium/drivers/llvmpipe/lp_tile_soa.py
+++ b/src/gallium/drivers/llvmpipe/lp_tile_soa.py
@@ -76,7 +76,7 @@ def generate_format_read(format, dst_type, dst_native_type, dst_suffix):
else:
assert False
- if format.layout in (ARITH, ARRAY):
+ if format.layout == PLAIN:
if not format.is_array():
print ' %s pixel = *src_pixel++;' % src_native_type
shift = 0;
@@ -208,7 +208,7 @@ def emit_tile_pixel_write_code(format, src_type):
print ' %s *dst_pixel = (%s *)(dst_row + x0*%u);' % (dst_native_type, dst_native_type, format.stride())
print ' for (x = 0; x < w; ++x) {'
- if format.layout in (ARITH, ARRAY):
+ if format.layout == PLAIN:
if not format.is_array():
print ' %s pixel = 0;' % dst_native_type
shift = 0;
@@ -246,7 +246,7 @@ def generate_format_write(format, src_type, src_native_type, src_suffix):
print 'static void'
print 'lp_tile_%s_write_%s(const %s *src, uint8_t *dst, unsigned dst_stride, unsigned x0, unsigned y0, unsigned w, unsigned h)' % (name, src_suffix, src_native_type)
print '{'
- if format.layout in (ARITH, ARRAY) \
+ if format.layout == PLAIN \
and format.colorspace == 'rgb' \
and format.block_size() <= 32 \
and not format.is_mixed() \
More information about the mesa-commit
mailing list