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

Cairo support #31

Merged
merged 23 commits into from
Oct 7, 2023
Merged

Cairo support #31

merged 23 commits into from
Oct 7, 2023

Conversation

ringlej
Copy link
Contributor

@ringlej ringlej commented Jul 15, 2023

This implements all of the script_ops in the scenic -> driver interface.

@ringlej ringlej force-pushed the jringle/cairo branch 13 times, most recently from 6387f93 to d85d1d7 Compare July 21, 2023 15:40
@ringlej ringlej force-pushed the jringle/cairo branch 2 times, most recently from 372f16d to bd336a6 Compare July 26, 2023 02:50
@ringlej ringlej marked this pull request as ready for review July 26, 2023 02:51
@ringlej ringlej force-pushed the jringle/cairo branch 7 times, most recently from 704c03b to 20e4463 Compare August 1, 2023 14:07
@ringlej
Copy link
Contributor Author

ringlej commented Sep 16, 2023

I added a few commits to fix issues in cairo I encountered while running cairo on our device with a modified version of @axelson hello_scenic_full
image
image

@ringlej
Copy link
Contributor Author

ringlej commented Sep 16, 2023

There are now only 3 unimplemented functions in cairo_script_ops.c (PR comment updated)

@ringlej ringlej changed the title Jringle/cairo Cairo support Sep 16, 2023
@ringlej ringlej force-pushed the jringle/cairo branch 2 times, most recently from c49116a to b7aec1f Compare September 19, 2023 14:51
@ringlej
Copy link
Contributor Author

ringlej commented Sep 21, 2023

I've now added some commits that allow building cairo to run on a rpi (tested on rpi3b)

@ringlej
Copy link
Contributor Author

ringlej commented Sep 21, 2023

IMG_8374.2-480-components.mov
IMG_8374.2-480-primatives.mov
IMG_8374.2-480-fills.mov
IMG_8374.2-480-strokes.mov
IMG_8374.2-480-transforms.mov

@ringlej ringlej force-pushed the jringle/cairo branch 4 times, most recently from 224279a to 4e7275b Compare September 25, 2023 18:03
This matches what is done similarly in glnvg__allocTexture() in the nvg
code to generate ids to use for looking up image data. This change will
remove the 32-bit constraint that was previously done with cairo images
and allow cairo to build on 64-bit architecture.
This is useful to either run scenic_driver_local with:
 * gdbserver
 * valgrind

For example, you could now have in your config:
`debugger: "gdbserver :5555"`

which will wait for you to attach gdb with a remote target on port 5555 and
set breakpoints and step through code

valgrind is useful for debugging memory issues such as malloc/free, memory
overruns and memory leaks.
c_src/device/cairo.c Show resolved Hide resolved
@crertel crertel merged commit 1a3ceba into ScenicFramework:main Oct 7, 2023
1 check passed
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.

2 participants