Skip to content

PVIDEO handling of NV_PVIDEO_SIZE_IN is incorrect #2434

@abaire

Description

@abaire

Bug Description

The current implementation creates a scaling effect and does not reproduce the clamping seen on hardware when the in size is less than the out size (and the DsDx/DtDy ratios are unity).

Test: https://github.com/abaire/nxdk_pgraph_tests/blob/c047da43bb6b6d8b011310204cae6eb6e77b2c5a/src/tests/pvideo_tests.cpp#L1129

Expected Behavior

On hardware, this test results in advancing diagonal lines with the last column/row of pixels being clamped to the edge of the output region.

HW results
https://youtube.com/clip/Ugkx7TJWlx74QUMW8rT5n45s_xyfQ2MT1SBh?si=PyXNE5z47jELhhwO

xemu Version

N/A affects all xemu versions

System Information

N/A affects all platforms

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggraphicsIssues with the graphics subsystem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions