more blit fixes
This commit is contained in:
parent
cd5f167353
commit
c1a7cc1e44
|
@ -218,6 +218,8 @@ static uint32_t mesa_format_to_us_format(gl_format mesa_format)
|
|||
{
|
||||
switch(mesa_format)
|
||||
{
|
||||
case MESA_FORMAT_S8_Z24:
|
||||
case MESA_FORMAT_X8_Z24:
|
||||
case MESA_FORMAT_RGBA8888: // x
|
||||
return EASY_US_FORMAT(R500_OUT_FMT_C4_8, A, B, G, R, 0);
|
||||
case MESA_FORMAT_RGB565: // x
|
||||
|
|
|
@ -49,10 +49,8 @@ do_copy_texsubimage(GLcontext *ctx,
|
|||
struct r300_context *r300 = R300_CONTEXT(ctx);
|
||||
struct radeon_renderbuffer *rrb;
|
||||
|
||||
if (_mesa_get_format_bits(timg->base.TexFormat, GL_DEPTH_BITS) ||
|
||||
_mesa_get_format_bits(timg->base.TexFormat, GL_STENCIL_BITS)) {
|
||||
if (_mesa_get_format_bits(timg->base.TexFormat, GL_DEPTH_BITS) > 0) {
|
||||
rrb = radeon_get_depthbuffer(&r300->radeon);
|
||||
return GL_FALSE;
|
||||
} else {
|
||||
rrb = radeon_get_colorbuffer(&r300->radeon);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue