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

[gui] Force GGUI to go through host memory (nuking interops) #7218

Merged
merged 3 commits into from
Jan 29, 2023

Conversation

bobcao3
Copy link
Collaborator

@bobcao3 bobcao3 commented Jan 20, 2023

Issue: #

Contains:

Brief Summary

Nuking all interops, in order to reduce code complexity of GGUI & provide path ways to other rendering frontends (e.g. metal)

@bobcao3 bobcao3 requested a review from k-ye January 20, 2023 01:02
@netlify
Copy link

netlify bot commented Jan 20, 2023

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit f8f851c
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63d231e2931cf90008b672e2
😎 Deploy Preview https://deploy-preview-7218--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@k-ye k-ye requested a review from AmesingFlank January 21, 2023 06:52
@bobcao3 bobcao3 force-pushed the ggui-features branch 2 times, most recently from 4521243 to 8fa7db0 Compare January 22, 2023 22:34
@k-ye
Copy link
Member

k-ye commented Jan 23, 2023

nit: Do you plan to break this PR down?

@bobcao3
Copy link
Collaborator Author

bobcao3 commented Jan 23, 2023

nit: Do you plan to break this PR down?

I will put all the RHI changes / bug fixes in their own PR, and then the GGUI changes kind of have to be a big blob to pass all tests.

I think that change set would be around +750 lines.

I can seperate them through ghstack perhaps but individual ones won't pass CI.

bobcao3 added a commit that referenced this pull request Jan 24, 2023
Related: #7218

Without this GGUI will mess with the OpenGL backend because both tries
to initialize & destroy GLFW.

There is an issue tho with dependency. Which target should
`rhi/window_system` belong to? Maybe we need a device API target that
collects all the specific backends and generate a static lib with all
backends and optional dependencies like GLFW? (Anyways, that will be a
TODO for another PR)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@bobcao3 bobcao3 force-pushed the ggui-features branch 2 times, most recently from 59af181 to ef5c547 Compare January 25, 2023 00:26
@bobcao3 bobcao3 force-pushed the ggui-features branch 2 times, most recently from 7496337 to c890284 Compare January 25, 2023 19:18
@bobcao3 bobcao3 force-pushed the ggui-features branch 2 times, most recently from eb839a2 to f39bdef Compare January 25, 2023 22:26
k-ye pushed a commit that referenced this pull request Jan 26, 2023
bobcao3 added a commit that referenced this pull request Jan 26, 2023
Part of #7218

Related (ndarray meta-programming): #7231
I would certainly like to share this code between the field vesion and
NDArray version

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
bobcao3 added a commit that referenced this pull request Jan 26, 2023
@bobcao3 bobcao3 marked this pull request as ready for review January 26, 2023 07:53
Copy link
Member

@PENGUINLIONG PENGUINLIONG left a comment

Choose a reason for hiding this comment

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

lgtm, @ailzhang and @AmesingFlank might wanna double check this huge pr.

Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

Thanks!

@ailzhang ailzhang merged commit 3d370a4 into taichi-dev:master Jan 29, 2023
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
Related: taichi-dev#7218

Without this GGUI will mess with the OpenGL backend because both tries
to initialize & destroy GLFW.

There is an issue tho with dependency. Which target should
`rhi/window_system` belong to? Maybe we need a device API target that
collects all the specific backends and generate a static lib with all
backends and optional dependencies like GLFW? (Anyways, that will be a
TODO for another PR)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…#7234)

Part of taichi-dev#7218

Related (ndarray meta-programming): taichi-dev#7231
I would certainly like to share this code between the field vesion and
NDArray version

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…dev#7218)

Issue: #

Contains:
- [x] taichi-dev#7230
- [x] taichi-dev#7232
- [x] taichi-dev#7233
- [x] taichi-dev#7234
Merge those before this PR (to reduce the size of the change set)

### Brief Summary

Nuking all interops, in order to reduce code complexity of GGUI &
provide path ways to other rendering frontends (e.g. metal)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

4 participants