[texture rw]
op0= al_set_blender(ALLEGRO_ADD, ALLEGRO_ALPHA, ALLEGRO_INVERSE_ALPHA)
op1=
op2= bmp = al_create_bitmap(640, 480)
op3= al_set_target_bitmap(bmp)
op4= al_clear_to_color(#554321)
op5= al_lock_bitmap_region(bmp, 133, 65, 381, 327, format, flags)
op6= fill_lock_region(alphafactor, true)
op7= al_unlock_bitmap(bmp)
op8=
op9= al_set_target_bitmap(target)
op10=al_clear_to_color(#00ff00)
# Don't assume the screen has an alpha channel, it may be 24 bit.
op11=al_set_separate_blender(ALLEGRO_ADD, ALLEGRO_ALPHA, ALLEGRO_INVERSE_ALPHA, ALLEGRO_ADD, ALLEGRO_ZERO, ALLEGRO_ONE)
op12=al_draw_bitmap(bmp, 0, 0, 0)
flags=ALLEGRO_LOCK_READWRITE
alphafactor=1.0

[test texture rw 32b ARGB_8888]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_ARGB_8888
hash=d4866407
sig=FFFFFFFFFFFEEFHKMFFFFFHKOQFFFFHJMSUFFFGILPWZFFFGJMSadFFFHKOUeiFFFHLQXimFFFFFFFFFF

[test texture rw 32b RGBA_8888]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_RGBA_8888
hash=d4866407
sig=FFFFFFFFFFFEEFHKMFFFFFHKOQFFFFHJMSUFFFGILPWZFFFGJMSadFFFHKOUeiFFFHLQXimFFFFFFFFFF

[test texture rw 16b ARGB_4444]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_ARGB_4444
hash=32b551c9

[test texture rw 24b RGB_888]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_RGB_888
hash=dc5525e2

[test texture rw 16b RGB_565]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_RGB_565
hash=a51f89f0

[test texture rw 15b RGB_555]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_RGB_555
hash=200647c4

[test texture rw 16b RGBA_5551]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_RGBA_5551
hash=c42fb611
# NOTE: the correct output for this is all green except for one pixel column
# on the right.

[test texture rw 16b ARGB_1555]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_ARGB_1555
hash=c42fb611
# NOTE: the correct output for this is all green except for one pixel column
# on the right.

[test texture rw 32b ABGR_8888]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_ABGR_8888
hash=d4866407
sig=FFFFFFFFFFFEEFHKMFFFFFHKOQFFFFHJMSUFFFGILPWZFFFGJMSadFFFHKOUeiFFFHLQXimFFFFFFFFFF

[test texture rw 32b XBGR_8888]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_XBGR_8888
hash=dc5525e2

[test texture rw 24b BGR_888]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_BGR_888
hash=dc5525e2

[test texture rw 16b BGR_565]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_BGR_565
hash=a51f89f0

[test texture rw 15b BGR_555]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_BGR_555
hash=200647c4

[test texture rw 32b RGBX_8888]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_RGBX_8888
hash=dc5525e2

[test texture rw 32b XRGB_8888]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_XRGB_8888
hash=dc5525e2

[test texture rw f32 ABGR_F32]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_ABGR_F32
hash=d4866407
sig=FFFFFFFFFFFEEFHKMFFFFFHKOQFFFFHJMSUFFFGILPWZFFFGJMSadFFFHKOUeiFFFHLQXimFFFFFFFFFF

[test texture rw 32b ABGR_8888_LE]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_ABGR_8888_LE
hash=d4866407
sig=FFFFFFFFFFFEEFHKMFFFFFHKOQFFFFHJMSUFFFGILPWZFFFGJMSadFFFHKOUeiFFFHLQXimFFFFFFFFFF

[test texture rw 16b RGBA_4444]
extend=texture rw
format=ALLEGRO_PIXEL_FORMAT_RGBA_4444
hash=32b551c9
