Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextureCacheBase: Change CacheLinesPerRow to BytesPerRow #3188

Merged
merged 1 commit into from Oct 25, 2015

Conversation

lioncash
Copy link
Member

No description provided.

{
u32 blockW = TexDecoder_GetBlockWidthInTexels(format);
constexpr u32 TEXTURE_BLOCKS_PER_ROW = 32;

This comment was marked as off-topic.

@lioncash lioncash changed the title TextureCacheBase: Change CacheLinesPerRow to CacheBytesPerRow TextureCacheBase: Change CacheLinesPerRow to BytesPerRow Oct 19, 2015

u32 numBlocksX = actualWidth / blockW;

// RGBA takes two cache lines per block; all others take one
if (format == GX_TF_RGBA8)
numBlocksX = numBlocksX * 2;
return numBlocksX;

This comment was marked as off-topic.

@degasus
Copy link
Member

degasus commented Oct 19, 2015

LGTM

1 similar comment
@phire
Copy link
Member

phire commented Oct 19, 2015

LGTM

@lioncash
Copy link
Member Author

@degasus @phire I overlooked the usage here (as I wasn't on Windows, and because the buildbots have gone AWOL), and this one does a multiplication by 8. What should be done about that?

@phire
Copy link
Member

phire commented Oct 22, 2015

Yeah. The buildbot's were why I didn't actually press merge.

That function wants number of 32bit words per row. So bytesPerRow / sizeof(u32)

@lioncash
Copy link
Member Author

@dolphin-emu-bot rebuild

phire added a commit that referenced this pull request Oct 25, 2015
TextureCacheBase: Change CacheLinesPerRow to BytesPerRow
@phire phire merged commit bd20dd3 into dolphin-emu:master Oct 25, 2015
@lioncash lioncash deleted the texcache branch October 25, 2015 04:50
@dolphin-emu-bot
Copy link
Contributor

FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:

  • kirby-shadows on ogl-lin-mesa: diff

automated-fifoci-reporter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants