mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-21 19:30:38 +01:00
Some nouveau_screen work for darktama
This commit is contained in:
parent
4f61fd18b2
commit
f65a4b8a8d
1 changed files with 21 additions and 0 deletions
|
|
@ -28,11 +28,32 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include "nouveau_screen.h"
|
||||
#include "nouveau_object.h"
|
||||
|
||||
#include "xmlpool.h"
|
||||
|
||||
PUBLIC const char __driConfigOptions[] =
|
||||
DRI_CONF_BEGIN
|
||||
DRI_CONF_SECTION_DEBUG
|
||||
DRI_CONF_NO_RAST(false)
|
||||
DRI_CONF_SECTION_END
|
||||
DRI_CONF_END;
|
||||
static const GLuint __driNConfigOptions = 1;
|
||||
|
||||
static nouveauScreenPtr nouveauCreateScreen(__DRIscreenPrivate *sPriv)
|
||||
{
|
||||
nouveauScreenPtr screen;
|
||||
NOUVEAUDRIPtr dri_priv=(NOUVEAUDRIPtr)sPriv->pDevPriv;
|
||||
|
||||
/* allocate screen */
|
||||
screen = (nouveauScreenPtr) CALLOC( sizeof(*screen) );
|
||||
if ( !screen ) {
|
||||
__driUtilMessage("%s: Could not allocate memory for screen structure",__FUNCTION__);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* parse information in __driConfigOptions */
|
||||
driParseOptionInfo (&screen->optionCache,__driConfigOptions, __driNConfigOptions);
|
||||
|
||||
screen->card=nouveau_card_lookup(dri_priv->device_id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue