-
Notifications
You must be signed in to change notification settings - Fork 303
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
change the try order of DRI2 and DRI3 #716
base: master
Are you sure you want to change the base?
Conversation
try DRI2 firstly, if suecess, it could detect driver name , also could use vaPutSurfaces. if failed , try DRI3, it only support driver name detection could not use vaPutSurfaces. if there are both DRI2 and DRI3 it could ensure vaPutSurfaces work Signed-off-by: Carl Zhang <[email protected]>
i guess it should be a way to force dri3 if both available. |
it is a good idea, but why you prefer to use dri3 instead of dri2 in this case? |
The code-flow - try DRI3, unless explicitly disabled, then go for DRI2 - has been in use in Mesa for 5+ years. Changing it is counter intuitive, but more importantly it will break use-cases where you want to use DRI3 and both DRI2 and DRI3 are available. As mentioned before - the Intel driver needs to be fixed. Be that by copying (+ crediting) the mesa VA/winsys code or writing one from scratch. |
If fixing the Intel drivers is not an option for the short/mid term, another option is to explicitly fallback to DRI2 on those platforms. I'm getting quite tempted at writing a PR for that actually. Community has been asking for DRI3 for 5+ years and even after rehashing that one year ago (when the DRI3 PR was opened), there is no action taken by Intel |
which use- case is blocked? you know libva just use it to retrieve a library name, and draw a surface to display. |
For 2.18 this patch needs to be modified to
|
Something like #727 would be a better fix. It will not affect other drivers and i965/iHD will work as before. There is zero reason to penalise others, if i965/iHD has no time/interest/other in updating. |
per: #677 (comment) |
Nearly(?) all the drivers out there but the Intel ones support DRI3. In some cases it's the required mode of operation. Merging this will cause regressions and in some cases quite subtle ones. Limiting everyone due to the feature set (or lack there of) of the Intel driver(s), does not seem practical and nor friendly to the ecosystem as a whole. The earlier proposal #727 keeps DRI2 for Intel drivers and DRI3 for everyone else. Preserving the correct functionality for everyone. Speaking of which - the PR has been opened for 5 months now - so happy anniversary. I would kindly repeat my earlier request - can we get timely reviews and feedback on MRs? Currently one has to borderline beg to get anything merged. Thanks |
this part is confusing, what kind of regressions? which driver and usage cases?
the discussion is very disrupting , to respect your opinion, I did not merge this PR directly, to avoid direct offend , at least , you should let me know which case , who are blocked. if there are no example, I will merge it. thanks |
|
try DRI2 firstly, if suecess, it could detect driver name , also could use vaPutSurfaces.
if failed , try DRI3, it only support driver name detection could not use vaPutSurfaces.
if there are both DRI2 and DRI3
it could ensure vaPutSurfaces work