mirror of https://github.com/encounter/SDL.git
Use aligned stride in sceGxmColorSurfaceInit
This commit is contained in:
parent
7080bc2a91
commit
fc4296c114
|
@ -1056,6 +1056,7 @@ create_gxm_texture(VITA_GXM_RenderData *data, unsigned int w, unsigned int h, Sc
|
||||||
const uint32_t alignedHeight = ALIGN(h, SCE_GXM_TILE_SIZEY);
|
const uint32_t alignedHeight = ALIGN(h, SCE_GXM_TILE_SIZEY);
|
||||||
uint32_t sampleCount = alignedWidth*alignedHeight;
|
uint32_t sampleCount = alignedWidth*alignedHeight;
|
||||||
uint32_t depthStrideInSamples = alignedWidth;
|
uint32_t depthStrideInSamples = alignedWidth;
|
||||||
|
const uint32_t alignedColorSurfaceStride = ALIGN(w, 8);
|
||||||
|
|
||||||
int err = sceGxmColorSurfaceInit(
|
int err = sceGxmColorSurfaceInit(
|
||||||
&texture->gxm_colorsurface,
|
&texture->gxm_colorsurface,
|
||||||
|
@ -1065,7 +1066,7 @@ create_gxm_texture(VITA_GXM_RenderData *data, unsigned int w, unsigned int h, Sc
|
||||||
SCE_GXM_OUTPUT_REGISTER_SIZE_32BIT,
|
SCE_GXM_OUTPUT_REGISTER_SIZE_32BIT,
|
||||||
w,
|
w,
|
||||||
h,
|
h,
|
||||||
w,
|
alignedColorSurfaceStride,
|
||||||
texture_data
|
texture_data
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue