Skip to content

Conversation

@davidd-lunarg
Copy link
Contributor

@davidd-lunarg davidd-lunarg commented Dec 16, 2025

Also move current block index into ParsedBlock and reduce block_index state duplication.

These changes are made to support the changes for PR #2543

This PR is dependent on planned changes to file processing.

@davidd-lunarg davidd-lunarg requested a review from a team as a code owner December 16, 2025 21:31
@ci-tester-lunarg
Copy link
Collaborator

CI gfxreconstruct build queued with queue ID 603455.

@ci-tester-lunarg
Copy link
Collaborator

CI gfxreconstruct build # 8367 running.

@ci-tester-lunarg
Copy link
Collaborator

CI gfxreconstruct build # 8367 passed.

Copy link
Contributor

@jzulauf-lunarg jzulauf-lunarg left a comment

Choose a reason for hiding this comment

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

Something is very wrong with this PR. More than one files is diff'ing "all lines changed."

Also, migrating the block index into the ParsedBlock will be trivial after my current pending refactor of ParsedBlock creation. I'll push a WIP of that later today. There's a little cleanup first.

@@ -1,1724 +1,1771 @@
/*
** Copyright (c) 2018 Valve Corporation
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this whole file changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Line endings changed from CRLF to LF. I've started a discussion about GFXR's policy on EOL internally. In the meantime you can disable whitespace diff in this PR's "Files changed" page.

private:
void InitBlockHeaderFromSpan();
size_t read_pos_{ 0 };
uint64_t block_index_{ 0U };
Copy link
Contributor

Choose a reason for hiding this comment

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

The BlockParser holds the block_index so the BlockBuffer shouldn't have to, the block parser should be able to injected it into the ParsedBlock

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right. This was removed because it wasn't being used and now ParsedBlock has the block index.

const char* message_start = parameter_data.GetDataAs<char>();
std::string message(message_start, std::next(message_start, static_cast<size_t>(message_size)));

return ParsedBlock(GetBlockIndex(),
Copy link
Contributor

Choose a reason for hiding this comment

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

I've literally rewritten every single constructor call site to call one of two factory functions. The BlockParser can inject the the BlockIndex in those functions. So I'm wondering if you can wait < 1 week whether there's a lower churn solution that adds this support after my refactor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes that is no problem.

@davidd-lunarg davidd-lunarg force-pushed the davidd-set-current-block branch from f8f1740 to 6eace0e Compare December 23, 2025 19:00
@ci-tester-lunarg
Copy link
Collaborator

CI gfxreconstruct build queued with queue ID 608306.

@ci-tester-lunarg
Copy link
Collaborator

CI gfxreconstruct build # 8429 running.

@davidd-lunarg davidd-lunarg marked this pull request as draft December 23, 2025 19:16
Also move current block index into ParsedBlock and reduce block_index
state duplication.
@ci-tester-lunarg
Copy link
Collaborator

CI gfxreconstruct build # 8429 aborted.

@davidd-lunarg davidd-lunarg force-pushed the davidd-set-current-block branch from 6eace0e to 1be0eba Compare December 23, 2025 19:21
@ci-tester-lunarg
Copy link
Collaborator

CI gfxreconstruct build queued with queue ID 608333.

@ci-tester-lunarg
Copy link
Collaborator

CI gfxreconstruct build # 8430 running.

@ci-tester-lunarg
Copy link
Collaborator

CI gfxreconstruct build # 8430 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.

3 participants