I am working on the Raspberry Pi 4 Mesa V3D driver
文章推薦指數: 80 %
The Raspberry Pi 4 sports a Video Core VI GPU that is capable of OpenGL ES 3.2, so it is a big update from the Raspberry Pi 3, which could only ... Skiptocontent Yeah…thisblogpostiswelloverdue,butbetterlatethannever!Soyes,IamcurrentlyworkingonprogressingtheRaspberryPi4Mesadriverstack,togetherwithmyIgaliancolleaguesPiñeiroandChema,continuingthefantasticworkstartedbyEricAnholtontheMesaV3Ddriver. TheRaspberryPi4sportsaVideoCoreVIGPUthatiscapableofOpenGLES3.2,soitisabigupdatefromtheRaspberryPi3,whichcouldonlydoOpenGLES2.0.AnotherbigchangewiththeRaspberryPi4isthattheMesav3ddriveristhedriverusedbydefaultwithRaspbian.BecausebothGPUsarequitedifferent,ErichadtowriteanallnewdriverfortheRaspberryPi4,andthatiswhytherearetwodriversinMesa:theVC4driverisfortheRaspberryPi3,whiletheV3DdrivertargetstheRaspberryPi4. Asforwhatwehavebeenworkingonexactly,IwrotealongpostontheRaspberryPiblogsomemonthsagowithalotofthedetails,butforthoselookingforthequicksummary: Shadercompileroptimizations. SignificantTransformFeedbackfixesandimprovements. ImplementedOpenGLLogicOperations. AbunchofbugfixesforPiglittestfailures. SetupaContinuousIntegrationsystemtoidentifyregressions. RebasedandmergeEric’sworkonComputeShaders. ManybugfixestargetingtheKhronosOpenGLESConformanceTestSuite(CTS). Sothat’sitforthelatenews.Ihopetodoabetterjobkeepingthisblogupdatedwiththenewsthisyear,andtostartwiththatIwillbewritingacoupleofadditionalpoststohighlightafewsignificantdevelopmentmilestonesweachievedrecently,sostaytunedformore! 7thoughtson“IamworkingontheRaspberryPi4MesaV3Ddriver” CanyougiveusaETA?Maybethisquarterorsecondofthisyear?Thanksfortheupdateonstatus! AllofthatworkisalreadyupstreaminMesa’s19.3release.UnfortunatelyIcan’tgiveyouanETAforwhenthatwouldarrivetoRaspberryPi4usersifthatiswhatyou’reaskingfor,thatdependsontheRaspberryPiFoundationpackagingandreleaseprocess,whichishandledbyadifferentgroupofpeople. HiIago, thanksforyourworkonthis!IamreallyexcitedforthefutureofthePi4🙂 DoIunderstandcorrectlythatforthebestperformanceonewouldwanttousecurrentmesamaster(or19.3.y)withv3d(notablyon_armv7l_)?Isthevc4kernelmoduleevenneededanymoreonthePi4ordoesitsolelydependonthenewv3d? Isthereanythingspecificthatdistromaintainersneedtokeepinmind? Bestregards, Tim HiTim, yes,19.3containssomeperformancework,butalsorelevantbugfixesandOpenGLES3.1whichbringsComputeShaders.Mastershouldbefinetoo,Ithinkmasterhasacoupleofrelevantperformanceimprovements(mostlyreplacingfnv1awithxxhashforourhashingwhichseemstosignificantlyimproveperformanceinsomecases)andalsobringsanewfeature:GeometryShaders. Thevc4kernelmodeisstillneeded,weneedbothvc4andv3d. Asforotherthingsthatmightberelevanttodistromaintainers,inordertogetGLES3.1withMesa19.3youalsoneedthiskernelpatch(whichisalreadymergedinthedownstreamrpi-4.19.ybranch): https://github.com/raspberrypi/linux/pull/3203 Aversionofthesamepatchwasalsopushedupstream(throughdrm-misc-next)quitesometimeago. HeyIago, thanksforyouranswer🙂 Ok!ThatclearssometroublesIhadunterstanding🙂 Currentlyiamusingthecurrentrpi-4.19.ybranchwithbothvc4andv3d(basicallydefconfig)andjustdoublechecked:it’sindeedworking,altoughonlyforasessionspawnedbyroot.Mynormaluserworksandshowstherightdriver(glxinfo-B:http://dpaste.com/3WRVYQK) buttheperformanceishorrible,withtextmorphingveryslowlyintoeachotherontheterminaletc🙂 Couldyouelaboratewhichdevicesin/devshouldneedtheirpermissionschanged?Itriedwith/dev/vchiqand/dev/dri/*withoutanyluck.Thanksalot! Yourusershouldatleastbeinthe‘video’group,Iamnotquitesureaboutwhatotherpermissionsitmayneed.IfbeinginthevideogroupisnotsufficientI’dsuggesttoaskthatsamequestionontheraspberrypiforums. https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=263587 Thanks,Ihavepostedthequestionthere.Hopefully,somebodycanshedsomelightonit.Haveagreatweekend! Commentsareclosed. Postnavigation PreviousPreviouspost:VK_KHR_shader_float16_int8onAnvilNextNextpost:RaspberryPi4V3DdrivergetsGeometryShaders Searchfor: Search RecentPosts VK_KHR_pipeline_executable_properties AnupdateonfeatureprogressforV3DV ImprovingperformanceoftheV3DcompilerforOpenGLandVulkan V3DV+Zink V3DVVulkandriverupdate:VkQuake1-3nowworking RecentCommentsJohnWonAnupdateonfeatureprogressforV3DVLeondeRooijonAnupdateonfeatureprogressforV3DVIagoToralonAnupdateonfeatureprogressforV3DVLeondeRooijonAnupdateonfeatureprogressforV3DVIagoToralonAnupdateonfeatureprogressforV3DVArchives May2022 August2021 March2021 November2020 July2020 January2020 December2018 May2018 April2018 March2018 February2018 October2017 July2017 January2017 November2016 October2016 August2016 July2016 July2015 May2015 April2015 March2015 November2014 September2014 August2014 July2014 February2014 January2014 December2013 June2013 May2013 June2011 May2011 August2010 June2010 May2010 April2010 March2010 February2010 October2009 July2009 June2009 March2009 June2008 April2008 October2007 July2007 June2007 May2007 March2007 February2007 November2006 October2006 September2006 August2006 July2006 June2006 March2006 Categories graphics Maemo Uncategorized webkit Meta Login EntriesRSS CommentsRSS WordPress.org
延伸文章資訊
- 1VC4 — The Mesa 3D Graphics Library latest documentation
Mesa's vc4 graphics driver supports multiple implementations of Broadcom's VideoCore IV GPU. It i...
- 2VC4 and V3D OpenGL drivers for Raspberry Pi: an update
The GPU bundled with Raspberry Pi 4 is a VideoCore VI capable of OpenGL ES 3.2, a significant ste...
- 3I am working on the Raspberry Pi 4 Mesa V3D driver
The Raspberry Pi 4 sports a Video Core VI GPU that is capable of OpenGL ES 3.2, so it is a big up...
- 4VC4 - Phoronix
- 5drm/vc4 Broadcom VC4 Graphics Driver - The Linux Kernel ...
The Broadcom VideoCore 4 (present in the Raspberry Pi) contains a OpenGL ES 2.0-compatible 3D eng...