Skip to content

GPU Blit Filter - #343

Merged
devshgraphicsprogramming merged 109 commits into
masterfrom
gpu_blit_filter
Jul 19, 2022
Merged

devshgraphicsprogramming merged 109 commits into
masterfrom
gpu_blit_filter

Conversation

@achalpandeyy

@achalpandeyy achalpandeyy commented Apr 4, 2022 •

Copy link
Copy Markdown
Contributor

Description:

I have added some basic tests. We can add more if we want.

TODO list:

- Decide where to put the files
- Decide where to put the common (to both CPU & GPU blit filter) LUT computation code

…computation of the LUT is decoupled from the execute function, among other things.
…ith LUT now, and it seems to work perfectly.
…no matter how big the image, as long as we can create it.
…tPixels) and directly preload into scratchShared. Reduces shared memory consumption by a factor of 2.
…he original test case which found the bug as well.
… to lower alpha bound in the normalization shader.
…for the Alpha Test and Normalization passes.
Comment on lines +108 to +111
else if (axis == 1)
kernelWeightIndex = params.phaseCount.x * params.windowDim.x + windowPhase * params.windowDim.y;
else if (axis == 2)
kernelWeightIndex = params.phaseCount.x * params.windowDim.x + params.phaseCount.y * params.windowDim.y + windowPhase * params.windowDim.z;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

precompute the Y and Z axis offsets and put them in the push constants

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have already exhausted the 128 byte required push constant limit.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

things can be packed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved.

@devshgraphicsprogramming
devshgraphicsprogramming merged commit 2cec714 into master Jul 19, 2022
@devshgraphicsprogramming
devshgraphicsprogramming deleted the gpu_blit_filter branch July 19, 2022 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants