python: Rename pipe formats.

This commit is contained in:
José Fonseca
2010-03-01 18:11:55 +00:00
parent b306308757
commit 0b6e45e1ee
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ st_context_create(struct st_device *st_dev)
memset( &templat, 0, sizeof( templat ) ); memset( &templat, 0, sizeof( templat ) );
templat.target = PIPE_TEXTURE_2D; templat.target = PIPE_TEXTURE_2D;
templat.format = PIPE_FORMAT_A8R8G8B8_UNORM; templat.format = PIPE_FORMAT_B8G8R8A8_UNORM;
templat.width0 = 1; templat.width0 = 1;
templat.height0 = 1; templat.height0 = 1;
templat.depth0 = 1; templat.depth0 = 1;

View File

@@ -485,7 +485,7 @@ st_sample_generic_pixel_block(enum pipe_format format,
w, h, w, h,
rgba, rgba_stride); rgba, rgba_stride);
if(format == PIPE_FORMAT_YCBCR || format == PIPE_FORMAT_YCBCR_REV) { if(format == PIPE_FORMAT_UYVY || format == PIPE_FORMAT_YUYV) {
for(y = 0; y < h; ++y) { for(y = 0; y < h; ++y) {
for(x = 0; x < w; ++x) { for(x = 0; x < w; ++x) {
for(ch = 0; ch < 4; ++ch) { for(ch = 0; ch < 4; ++ch) {