Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Fixes for customer issues on Release-july release #114

Open
wants to merge 2 commits into
base: release-july
Choose a base branch
from

Conversation

downor
Copy link

@downor downor commented May 28, 2019

Generic fixes for specific case for GLSL (patch #1) and Null ptr issue (patch #2)

Danylo Piliaiev and others added 2 commits May 28, 2019 10:04
'invariant' qualifier is propagated on variables which are used
to calculate other invariant variables, however when we are matching
variable's declarations we should take into account only explicitly
declared invariance because invariance propagation is an implementation
specific detail.

Thus new flag is added to ir_variable_data which indicates 'invariant'
qualifier being explicitly set in the shader.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100316

Signed-off-by: Danylo Piliaiev <[email protected]>
Signed-off-by: Dongwon Kim <[email protected]>
validate the addresses after mapping batch and state buffers, and
fail the submission if any of mapping failed.

Signed-off-by: Xiong, James <[email protected]>
state_map = brw_bo_map(brw, batch->state.bo, MAP_WRITE);
if (state_map == NULL) {
brw_bo_unmap(batch->batch.bo);
return -1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why would the mapping fail, what was the failing usecase/app?

Copy link
Contributor

Choose a reason for hiding this comment

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

The problem happened only once and a core dump was the only thing the customer could provide, I found the the application tried to access a NULL pointer and triggered A/V. To answer your question: we don't know the root cause of the mapping failure,

This is simply a w/a to fail the submission in case of mapping failure, hopefully the user app checks the error and fails gracefully instead of crashes to terminal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants