NV50: i misunderstood NOUVEAU_MEM_INTERNAL, so remove it
parent
09b67dda0b
commit
4d85d5d251
|
@ -33,7 +33,7 @@ static int nv50_lut_alloc(struct nv50_crtc *crtc)
|
||||||
{
|
{
|
||||||
struct mem_block *block;
|
struct mem_block *block;
|
||||||
struct drm_file *file_priv = kzalloc(sizeof(struct drm_file), GFP_KERNEL);
|
struct drm_file *file_priv = kzalloc(sizeof(struct drm_file), GFP_KERNEL);
|
||||||
uint32_t flags = NOUVEAU_MEM_INTERNAL | NOUVEAU_MEM_FB | NOUVEAU_MEM_MAPPED;
|
uint32_t flags = NOUVEAU_MEM_FB | NOUVEAU_MEM_MAPPED;
|
||||||
int rval = 0;
|
int rval = 0;
|
||||||
|
|
||||||
NV50_DEBUG("\n");
|
NV50_DEBUG("\n");
|
||||||
|
|
|
@ -742,9 +742,6 @@ void nouveau_mem_free(struct drm_device* dev, struct mem_block* block)
|
||||||
if (crtc->fb->block == block) {
|
if (crtc->fb->block == block) {
|
||||||
crtc->fb->block = NULL;
|
crtc->fb->block = NULL;
|
||||||
|
|
||||||
/* this will force a lut change next time a fb is loaded */
|
|
||||||
crtc->lut->depth = 0;
|
|
||||||
|
|
||||||
if (!crtc->blanked)
|
if (!crtc->blanked)
|
||||||
crtc->blank(crtc, TRUE);
|
crtc->blank(crtc, TRUE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue