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

Mainline BE #31

Merged
merged 8 commits into from
Jul 8, 2024
Merged

Mainline BE #31

merged 8 commits into from
Jul 8, 2024

Conversation

naushir
Copy link
Collaborator

@naushir naushir commented Jul 8, 2024

No description provided.

@naushir
Copy link
Collaborator Author

naushir commented Jul 8, 2024

Taking over from #30 by using a compiler flag to disable the packed struct fields warning.

@jmondi
Copy link
Collaborator

jmondi commented Jul 8, 2024

Do you happen to know why 73ee880 wasn't needed for you ?

@naushir
Copy link
Collaborator Author

naushir commented Jul 8, 2024

Do you happen to know why 73ee880 wasn't needed for you ?

No idea. I never got any compiler error messages in gcc/clang. Did you get one in your builds?

@jmondi
Copy link
Collaborator

jmondi commented Jul 8, 2024

Do you happen to know why 73ee880 wasn't needed for you ?

No idea. I never got any compiler error messages in gcc/clang. Did you get one in your builds?

Yes I do

../src/libpisp/common/pisp_utils.cpp: In function ‘std::size_t libpisp::get_plane_size(const pisp_image_format_config&, int)’:
../src/libpisp/common/pisp_utils.cpp:184:27: error: ‘abs’ was not declared in this scope
  184 |         uint64_t stride = abs(plane ? config.stride2 : config.stride); // in case vflipped?
      |                       

with

gcc 14.1.1 "c++ (GCC) 14.1.1 20240620 (Red Hat 14.1.1-6)")

naushir and others added 8 commits July 8, 2024 16:09
Replace the existing getOutputSize() private function with an equivalent
helper that fixes the config structure in-place as there is only ever
a single caller for it.

Signed-off-by: Naushir Patuck <[email protected]>
This is needed for when we start using the UAPI kernel headers which
use "__attribute__((packed))" to force structure packing as required by
the kernel. The compiler complains about taking a possibly unaligned
address of a packed structure even though the structure has been hand
packed.

Signed-off-by: Naushir Patuck <[email protected]>
Update the pisp_be_config.h and pisp_common.h headers from v11
mainline patch series at:
https://lore.kernel.org/all/[email protected]/

Plus additional fixes on top sent at:
https://lore.kernel.org/linux-media/[email protected]/

Signed-off-by: Jacopo Mondi <[email protected]>
The mainline header now uses uppercase identifiers for the image
format macros. Adjust them in libpisp code.

Signed-off-by: Jacopo Mondi <[email protected]>
Now that pisp_common.h doesn't include pips_types.h (which will be
removed) the single files using C standard int types should include
the header explicitly.

Signed-off-by: Jacopo Mondi <[email protected]>
The 'abs()' symbol is undefined. Use the implementation from the
C++ STL.

Signed-off-by: Jacopo Mondi <[email protected]>
The pips_types.h header has been absorbed in pisp_common.h by
the mainline driver version.

Drop it from libpisp as well.

Signed-off-by: Jacopo Mondi <[email protected]>
The mainline version of pisp_be_config.h header defines the
'num_tiles' member of 'struct pisp_be_tiles_config' as an unsigned
32-bit value.

Use an unsigned integer as loop variable to avoid the following
compilation error:

error: comparison of integer expressions of different signedness

Signed-off-by: Jacopo Mondi <[email protected]>
@naushir naushir merged commit 8f30e45 into main Jul 8, 2024
5 of 7 checks passed
@naushir naushir deleted the mainline-be branch July 8, 2024 15:10
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